Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Voucher number is not updating in projJournalTrans table


Voucher number is not updating in projJournalTrans table

$
0
0

HI,

 Am importing the data from CSV to ax (projJournalTable and projJournalTrans) using x++ code ,

DAT/Project management and accounting/Area page -->Hour journal

I can able to insert the data successfully ,when i try to post its showing error like,

(A key with the name 0.00 already exists)

This error causes of Voucher number is not updating in  projJournalTrans table

if manually creating  journal are   voucher number is created,

when i try to run using code voucher number is not creating  ,pls give any idea  to solve this issues  .

Regards

Siva Kumar

 

 

 

  

RE: Record level security for multiple warehouses and users.

$
0
0

I tried record level security but it didnt work for me because I had to restrict the user to view only transfer orders that were either generated from his warehouse or to his warehouse.

I tried adding query with filter criteria as following

LocationIdFrom = "WAREHOUSE_A"

LocationIdTo = "WAREHOUSE_A"

but above query is than treated as logical AND clause i.e. fetch all records whose locationIdfrom is "WAREHOUSE_A" AND locationIdTo is "WAREHOUSE_A" which returns 0 records.

RE: Add Enum Values to Lookup

$
0
0

I use EditString and lookup() method because if I use a Combobox bound at an Enum values are messed up if I try to delete a value that other values follow. For example let's say there is an Enum with values A, B, C, D. If I delete value D then everything  is ok but if I delete B then C index changes and even though value C will be chosen in database it will be written as index 2 which is value B

How to pass lesser than created date range in query class

$
0
0

Hi,

I want to pass a 'CreatedDateTime' range value to a query in runtime to delete a table records which has the 'CreatedDateTime' value lesser than the parameter value that is been passed as query range value.

When the parameter value is been fetched, it is in the correct format of '9/27/2017 11:30:44 am'. But when I pass the same to query range using the below syntax, it is getting converted to the format '2017-09-27T15:31:48' which is not making the query to select the records properly.

utcDateTime         createdDateTime;

createdDateTime= dataContract.parmFromDate(); //This returns utcDateTime value - 9/27/2017 11:30:44 am

 

queryBuildrange = query.dataSourceTable(tableNum(TestTable)).addRange(fieldNum(TestTable, CreatedDateTime));
queryBuildrange.value(strFmt('<%1', createdDateTime)); //This adds the range value as 2017-09-27T15:31:48

Any suggestions pls!

Thanks!

 

RE: Re-refresh grid based on new selected value ?

$
0
0

Hi,

Please try by performing following changes:

Change queryrange either to qbr.value(queryvalue(myStrResultGet));  (or) qbr.value(queryvalue(CustGroupId.selected()));

Unitofmeasureconversion table not giving real numbers

$
0
0

Hello experts,

your urgent help please. when I show the record for the table unitofmeasureconversion table I don't get real values. for example: when I run a report the query:

SELECT TOP 1000   [InventTable].ITEMID
,[FROMUNITOFMEASURE]
      ,[TOUNITOFMEASURE]
      ,inventTable.[PRODUCT]
      ,[FACTOR]
      ,[NUMERATOR]
      ,[DENOMINATOR]
      ,[INNEROFFSET]
      ,[OUTEROFFSET]
      ,[ROUNDING]
      ,[UNITOFMEASURECONVERSION].[RECID]
  FROM [DBNAME].[dbo].[UNITOFMEASURECONVERSION], [DBNAME].[dbo].[InventTable]
  WHERE [DBNAME].[dbo].[UNITOFMEASURECONVERSION].PRODUCT = [DBNAME].[dbo].InventTable.PRODUCT

it gives me results as follow:

DenominatorFactorFromUnitOfMeasureProductRoundingToUnitOfMeasuremodifiedDateTimerecVersionPartitionRecId
1156371445915637144848To nearest563714459422/11/2012 11:30156371445765637145401

as you can see the FromUnitOFMeasure and ToUnitOfMeasure is not showing the real values. 

Please any help would be greatly appreciated

RE: Shipping Tracking Number AIF Service


RE: Data management - fields are disabled and cannot be used for import/export.

$
0
0

Any Solution ? or suggestion on it .

Data management - fields are disabled and cannot be used for import/export.

$
0
0

Hi,

i am setting mapping to import items from excel. I import it to released products.

When i choose some staging fields i get error:


Field(s) - 'PRODUCTSUBTYPE' are disabled and cannot be used for import/export.

this refers at least to fields ProductType and ProductSubType

How to override this errors?

Maybe i will succeed if choose another entity, not Released products?

RE: How to pass lesser than created date range in query class

$
0
0

Hi,

Please try the following:

queryBuildrange.value(strFmt('<%1', queryValue(createdDateTime))); (or)
queryBuildrange.value(strFmt('(CreatedDateTime < %1)', DateTimeUtil::toStr(createdDateTime)));

RE: Unitofmeasureconversion table not giving real numbers

$
0
0

Hi,

You should fetch those values from table UnitOfMeasure(field: Symbol has the value) based on following relations

UnitOfMeasureConversion.FromUnitOfMeasure == UnitOfMeasure.RecId

UnitOfMeasureConversion.ToUnitOfMeasure == UnitOfMeasure.RecId.

So, your query would like like

use [DBNAME}
SELECT TOP 1000   Invent.ITEMID
,Conver.[FROMUNITOFMEASURE]
      ,Conver.[TOUNITOFMEASURE]
      ,Conver.[PRODUCT]
      ,Conver.[FACTOR]
      ,Conver.[NUMERATOR]
      ,Conver.[DENOMINATOR]
      ,Conver.[INNEROFFSET]
      ,Conver.[OUTEROFFSET]
      ,Conver.[ROUNDING]
      ,Conver.[RECID]
	  ,FromUnitOfMeasure.SYMBOL as [FromUnit]
	  ,ToUnitOfMeasure.SYMBOL as [ToUnit]
  FROM [dbo].[UNITOFMEASURECONVERSION] as Conver
  join [dbo].[InventTable] as Invent
  on Conver.PRODUCT = Invent.PRODUCT
  join UnitOfMeasure as FromUnitOfMeasure
  on Conver.FromUnitOfMeasure = FromUnitOfMeasure.RecId
  join UnitOfMeasure as ToUnitOfMeasure
  on Conver.TOUNITOFMEASURE = ToUnitOfMeasure.RecId

RE: Vendor Creation in Ax7

$
0
0

can you please post what is there in innerexception . This screenshot is not helpful.

Vendor Creation in Ax7

$
0
0

Hi Friends,

            I need to create vendor in Odata Integration using c# code,

         Vendor vend = new Vendor();

 DataServiceCollection<Vendor> vendorcollection = new DataServiceCollection<Vendor>(context);
vendorcollection.Add(vend);
vend.VendorAccountNumber = "THMF-00008";
vend.VendorName = "Rio";
vend.VendorPartyType = "Organisation";
vend.VendorGroupId = "30";
vend.CurrencyCode = "THB";
vend.DataAreaId = "THMF";
vend.AddressCountryRegionId = "AFG";
context.SaveChanges(SaveChangesOptions.PostOnlySetProperties | SaveChangesOptions.BatchWithSingleChangeset); // Batch with Single Changeset ensure the saved changed runs in all-or-nothing mode.

But I am getting the error like this,

Please suggest me an solution.

Thanks & regards,

padmapriya varatharajan

RE: Database consistency check Error


RE: Update Sales Agreement AFTER Invoice Posting

$
0
0

Mahmoud,  Thanks!  invoice safety level is "None", so I could edit the order.  It appears that the parameters of the Sales agreement was what was preventing me from creating the link.  but now that the line is linked, it picked up the release but not the invoice.  Is there a step that has to be taken to link the invoice?

RE: Re-refresh grid based on new selected value ?

$
0
0

worked fine   this.Query().datasourceNo(1).clearRanges();

Chaitanya Golla thank you

not worked qbr.value(queryvalue(myStrResultGet));  (or)

not worked qbr.value(queryvalue(CustGroupId.selected()));  

Sukrut Parab thank you

this example with combocox and in combox there is method named selection changed

i didn't find it on stringedt

RE: Voucher number is not updating in projJournalTrans table

$
0
0

Hi Chaitanya Golla,

 Thank for reply, when am using  your code its showing ( Number sequence 0 does not exist.) pls give any idea  to solve this issues  .

Regards

Siva

RE: Voucher number is not updating in projJournalTrans table

$
0
0

Hi,

Please check whether the voucher number sequence associated with the journal type hour is set or its missing.

RE: Update conflict error when adding a customer contact primary email and selecting instant messenger sign in field

$
0
0

I apologize for the redundant screen shots. The first screen shot should be this

and the second screen shot should be this

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>