Quantcast
Viewing all 72043 articles
Browse latest View live

DIEF Data Migration from AX 2012 FP CU3 to R2 CU7

Hello All,

We have upgraded our system from AX 2012 FP CU3 to AX 2012 R2 CU7. But before I ran the setup of AX 2012 R2 CU7 , I took DAT/DEF backup of all the DIEF tables

Now after i successfully completed data upgrade on R2 CU7, I was trying to import the DAT/DEF files. But when I tries to import these file I got an error : "File did not contain valid data. Nothing was imported "  Although I can see file has size around 51 MB. and it is binary file so can not see what data is there. Even I tried to import the CSV file as well but faced same error. Now i suspect is it issues of compatibility between Ax 2012 FP CU3 and R2 CU7?

Image may be NSFW.
Clik here to view.

Kindly help.

Thanks

Manoj Parashar


AX2009 MRP finishes early and doesn't process everything

We have had a solidly running optimized static MRP that runs (with helpers) every night for years now. It normally takes about 15 minutes and processes around 10K order lines at this point.

Mid last week, it suddenly started finishing in 5 minutes and processes only ~2K lines, it basically only processes about 5 items inventory and then just stops and hence our inventory data on the majority of items is wrong. Needless to say this is a major issue for us. Since the MRP think its "fine" there are no errors thrown. We have spent the last couple days troubleshooting this and still haven't managed to figure out what is going on. We think there is erroneous data possibly somewhere in salesline or inventtable, but there is a lack of tracing for MRP (unlike AX 2012...).

The only other person that I could find on the net that has this similar issue, said they had a blank ITEMID in the inventtable, unfortunately we do not have such an entry and thus the problem continues.

Any ideas on how to further troubleshoot 2009 MRP?? Even our vendor/partner hasn't been able to figure this out yet.

Does Array.lastIndex() initialize to 0 when the Array object is empty?

Dumb question--does Array.lastIndex() return 0 if the Array object is empty? The example code seems to indicate this is the case, but it is never explicitly stated in the documentation.

If this is the case, anyone from Microsoft reading might want to look into changing the documentation. I avoid using Arrays when I can (I prefer Sets, Lists and Maps) but in this case I am modding code that already uses it, and I am not sure of what the lower bound of the array is for the For loop I am about to write.

Thanks

Brandt

What is the benefit to temp tables? (other than mass confusion)

I've been in IT for over 10 years now and I can't see any purpose to these temporary tables (or InMemory tables as AX 2012 calls them).  I've read the MS TechNet page that explains what their alleged benefits are and it seems like it's all blowing smoke.  I was trying to modify one simple report and I completely hit a stop because the report uses a temporary table as it's source instead of just the physical table.  Apparently you have to add a field to the temp table in the AOT and THEN modify the class that inserts the data into the temp table.  I am dumbfounded by the reasoning here.  Is MS just completely opposed to making things simple for the end user??  Why is it this gosh darn hard to change one simple report?!?  The data that you're putting into the temp table has to pull from the physical table anyway so where then is the performance benefit that MS claims?  Has anyone else thought about this??

On a side note in case anyone from MS reads this:  you could have software that is the most powerful in the world but if it requires a person to have a PhD to be able to make simple changes to or to use then it's a terrible design.  You've made this software for both the $5M companies and the $10B+ companies but things don't work that way.  When you make a software that way you end up making it unbelievably complex for the $5M company.  I am seriously thinking MS will just never get this concept.

Form lookupReference doesn't work

I am trying to get a worker dropdown on one of my forms.

I have a relation on the field and I overrided the lookupReference on the form datasource. There is no dropdown on my field...

What did I forget? I have other fields with lookups which work great, but this one doesn't want to!!

Using AD groups In Axapta 2012

Hallo

I have setup groups I AD to use in Axapta 2012, and that work great with the new user I add, but how can I get it to work on user there already have been logged in and already have personal there ax.

Before I know about using AD groups I have manual imported this user from AD to ax and then apply the roles to them, but it is much easier the other way around, can some of you help me.

AxSalesTable class doesn't run SalesTable.initFromCustTable() Why the inconsistency?????

When a user manually enters a sales order, the method SalesTable.initFromCustTable runs and sets field defaults based on the customer defaults.  Why is this method not invoked when processing an AIF salesorder insert????

Also, why are sales order default field values not taken from the address when a different address is selected.  Attached is example code I had to add to get some of those fields to apply. (code snippet was added to salestable.initFromCustTableMandatoryFields())

// TCC_ISSUE177_BlindShipment - mjf - 4/22/2013

       // added this code to grab defaults from the address

       shipCarrierAddress = ShipCarrierAddress::findByCustomerLocation(custTable.AccountNum, location.RecId);

       if (shipCarrierAddress)

       {

           this.ShipCarrierBlindShipment = shipCarrierAddress.ShipCarrierBlindShipment;

           this.ShipCarrierResidential = shipCarrierAddress.ShipCarrierResidentialDest;

           if (shipCarrierAddress.DlvModeId != '')

           {

               this.DlvMode = shipCarrierAddress.DlvModeId;

           }

           if (shipCarrierAddress.DlvTermId != '')

           {

               this.DlvTerm = shipCarrierAddress.DlvTermId;

           }

           if (shipCarrierAddress.ShipCarrierAccount != '')

           {

               this.ShipCarrierAccount = shipCarrierAddress.ShipCarrierAccount;

           }

           if (shipCarrierAddress.ShipCarrierAccountCode != '')

           {

               this.ShipCarrierAccountCode = shipCarrierAddress.ShipCarrierAccountCode;

           }

           if (shipCarrierAddress.ShipCarrierId != '')

           {

               this.ShipCarrierId = shipCarrierAddress.ShipCarrierId;

           }

       }

I also had to add the following code to get taxation right because a different address was selected on a sales order. (code is from salestable.initFromCustTableIL).

// code taken from here and moved below TCC_ISSUE177_BlindShipment mjf 4/22/2013

   salesTable.DlvTerm                    = custTable.DlvTerm;

   salesTable.DlvMode                    = custTable.DlvMode;

   salesTable.DlvReason                  = custTable.DlvReason;

   dlvMode                               = DlvMode::find(custTable.DlvMode);

   if (salesTable.DlvMode)

   {

       salesTable.ShipCarrierId              = dlvMode.ShipCarrierId;

       salesTable.ShipCarrierAccountCode     = dlvMode.ShipCarrierAccountCode;

       salesTable.ShipCarrierDlvType         = dlvMode.ShipCarrierDlvType;

   }

   // TCC_ISSUE177_BlindShipment start

   // MJF - 4/22/2013

   // moved from area listed above.

   salesTable.initFromCustTableMandatoryFields();

   //used sales table dlv term and tax group if available instead of cust table as it may have come fromthe address

   if (salesTable.TaxGroup)

   {

       salesTable.setTaxGroup(TaxSales::custTaxGroup(salesTable.DlvTerm, salesTable.TaxGroup, salesTable.deliveryLocation()));

   }

   else

   {

       salesTable.setTaxGroup(TaxSales::custTaxGroup(custTable.DlvTerm, custTable.TaxGroup, salesTable.deliveryLocation()));

   }

   // TCC_ISSUE177_BlindShipment end

Unless I'm missing something, these merit hotfixes

Invoking AX web service via C#

Hi,

I am trying to connect to the AX web services. What I will do it to fetch the right price given a product and a customer.

I realised the right webservice to use is PriceListServiceClient and I am able to log in to it using windows authentication, but I cannot retrieve any data from it.

Here is my code:

PriceListServiceClient priceListServiceClient = newPriceListServiceClient();


priceListServiceClient.ClientCredentials.Windows.ClientCredential.UserName = "yyy";

priceListServiceClient.ClientCredentials.Windows.ClientCredential.Password = "zzz!";

priceListServiceClient.ClientCredentials.Windows.ClientCredential.Domain = "xxx";          

CriteriaElement[] criteriaElement = newCriteriaElement[1];

criteriaElement[0] = newCriteriaElement();

criteriaElement[0].DataSourceName = "SalesPrice";

criteriaElement[0].FieldName = "ItemId";

criteriaElement[0].Operator = Operator.NotEqual;

criteriaElement[0].Value1 = "5637153175"

QueryCriteria queryCriteria = newQueryCriteria();

queryCriteria.CriteriaElement = criteriaElement;

CallContext callContext = newCallContext();

            

var found = priceListServiceClient.find(callContext, queryCriteria);

Console.WriteLine(found.Currency);

priceListServiceClient.Close();

Any idea about why this is happening?


Inventory Management Parameters - Physical Posting(Post estimates periodically)

Hello Forumites, 

Hope all is good, one of our power user's turned on or checked the "post estimates periodically" in Inventory management parameters section last month and naturally it caused to not post any packing slip vouchers at the time of purchase order physical posting for that time fram. 

I traced that issue and un-checked it. Now I see that there is a periodic job in the periodic section of Inventory management for physical posting. Is this related to this one and can we run to post all the physical vouchers till date. 

Please let me know what needs to be done to run and post past packing slip vouchers for that time frame. 

Thanks,

Ken

Free trial key AX 2012

Hello everyone, I'm actually working on a demo of ax 2012, the problem is I can't insert dates superior to december 2006, and I need it to test my POS ( my workers don't have permissions apparently, and I can't give them if I don't "hire" them for today's date ).

So if you know any way to give my workers authorization to access the POS or to get to use this year date, please help me!

LCS Azure AX 2012 R3 with TFS online

So I played around with the AX 2012 R3 VM that can be deployed from within Lifecycle Services to Azure. So far, so good, but when I try to enable source control with the TFS server of my Azure Visual Studio Online, the authentication step fails. It seems the authentication page https://login.windows.net is not accessible in the VM. Does anyone have an idea if this is possible and what can be done to enable authentication?

DAX 2012 R2 CU7 Bulk Copy Script DimensionAttributeSet failing because hash value not set

Hello,

Several of my dimension attribute bulk copy scripts are failing because the hash value is not set and therefore it violate the index since hash is null.

[Microsoft][SQL Server Native Client 10.0][SQL Server]The CREATE UNIQUE INDEX statement terminated

because a duplicate key was found for the object name 'dbo.DIMENSIONATTRIBUTESET' and the index

name 'I_3625HASHIDX'. The duplicate key value is (5637144576, 50021, <NULL>).

Any ideas on when the hash value is supposed to be generated or any way to get this to work?

Thanks!

Trisha

AX2012 R2 Sort Order on a Form Grid

I created a Form that I want to have a special order when it populates.

I first created a View that has a couple Computed fields in it.  One is called SortNode.

That View is called by a Query - which is Ordered By SortNode.

I then use the Query in another View since I am joining a few different tables.

But for some reason the sort order of the data that populates the form is by the original files tables index (HierarchTreeTable-HierarchyElementNumbIdx).

How do I get the Form to show the data in the order that I have it in the Query and not use the index.  Or, is there some way to create an index for the View so I can tell the grid to use that index?

Free Text Invoices - Notes not printing on Form

I added two notes (external and internal) to a free text invoice to see which one would print out on the form, but neither did. I checked my form setup for the Free text invoice and the "Include document on sheets" is set to "Header" and the "Include documents of type" is set to "Note". Any ideas why they aren't printing? I'm using the standard canned MS report for now.

Using AX2012 R2.

Pay Adjustments for weekly Overtime Calculation

I am trying to calculate overtime hours for an employee based on a weekly total of 40 hours, rather than a daily total of 8. I have setup the pay agreement with a pay adjustment using a base of 'pay time' and I've associated a pay period and adjustment pay types, as the TechNet article suggests, but I am unable to see the overtime calculated correctly on the approval journal. Any thoughts on steps I may be missing?


FK replacement key error while inserting.

Dear All,

I am inserting data in few tables via X++ as follows.

1>        wrkCtrActivity.EntityType = WrkCtrActivityType::ProdRoute;

2>       wrkCtrActivity.insert();

3>

4>       WrkCtrActivityRequirementSet.Activity = wrkCtrActivity.RecId;

5>       WrkCtrActivityRequirementSet.insert();

But when I put debugger I found that there is some error on line number 4, when i put my cursor on  "WrkCtrActivityRequirementSet.Activity " it shows error as "FK replacement failed".

Can anyone please help me out to resolve this ?

Thank you.

AX for Retail rounding issue related to Loyalty

Hello

I have an issue with loyalty schemes, basically when i issue points, i have a rounding problem when i generate a transaction the sistem is rounding to zero any given calculation related to loyalty transactions.

For instance i have a loyalty scheme, based on ammount, where 10 USD will give the costumer 1 point.

Then if the ítem Price is 10.99 USD the system will give still 1 point.

NOTE: According to  this simple calculation, im expecting to have 1.09 points.

Any advice on this issue

Thnx in advance

AX 2012 upgrade from R2 to R3 xppcompileall stuck

I am going through the in-place upgrade process posted here (technet.microsoft.com/.../jj733502.aspx) At the point where you run AXBuild.exe xppcompileall. The compile is stuck on NumberSequenceTable and has been stuck there for at least 24 hours. Anyone testing the upgrade process have any insight? I can't seem to find any logs indicating what could be wrong. The only thing I have found that could be related is two error log entries, one that is System.IO.FileNotFoundException: Could not load file or assembly 'Dynamics.AX.Application' I figure this is due to the upgrade. and two, RPC error: Failed to register spn. (Also figure this is due to the upgrade) but I could be wrong.

Customer Aging report SQL error after CU7 update to AX2012 R2

After I applied a CU7 update to our AX2012 R2 installation, One of the users reported this error to me.

Cannot edit a record in Customer or vendor account number (CustVendTransAging).

The SQL database has issued an error.

SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]String or binary data would be truncated.

SQL statement: UPDATE T1 SET NAME=T3.NAME,RECVERSION=? FROM tempdb."DBO".t12143_065EB03A5044473883A01845DF64A84A T1 CROSS JOIN CUSTTABLE T2 CROSS JOIN DIRPARTYTABLE T3 WHERE (T1.PARTITION=?) AND (((T2.PARTITION=?) AND (T2.DATAAREAID=?)) AND (T1.ACCOUNTNUM=T2.ACCOUNTNUM)) AND ((T3.PARTITION=?) AND (T2.PARTY=T3.RECID))


It turns out that the Name field on the table CustVentTransAging has an extended data type of Name which is 60 characters  however it was being assigned a value from DirPartTable.Name which has an extended Data Type fo DirPartyName which is 100 characters. 


So I changed the extended data type on CustVentTransAging  from Name to DirPartyName and the RESOLVED the issue.


If you do not like that solution, you can go to \Classes\CustVendAgingCalculation and inspect the method insertCustVendData maybe you can re write the update code there to meet your needs.

Thanks,

Keep sharing the knowledge.

-Albert.

Dynamics AX 2009 with HighJump WMS integration

Has anyone here integrated HighJump WMS into AX? I was looking for information on this from HighJump but they have not emailed me back yet (2 weeks). From what I read they have software to integrate quickly into AX but I could not find any information. We currently use an older version of HighJumps WMS System, we have made major modifications to the original HighJump software to suit the company that we work for. We have not decided to completely integrate the two, so I'm just currently looking for information. It seems like more and more that we will have to integrate it ourselves. If anyone can point me in the right direction toward some information it would be much appreciated. "Googling" has gave me many results. Thanks! Andy
Viewing all 72043 articles
Browse latest View live


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