Quantcast
Channel: Microsoft Dynamics AX
Viewing all 101540 articles
Browse latest View live

Forum Post: RE: How to change logic for TransactionID in retail transaction

$
0
0
Hi, Solomon, Thank you for the replay.

Forum Post: Item L0025 is included circularly in the bill of materials.

$
0
0
Hi All, I use the standard contoso USMF and I receive the following message. Any idea how to fix it? BR, Michalis

Forum Post: RE: Cannot select Date from Date Field in Enterprise portal

$
0
0
Is that a custom form? Can redeploy that web control and try.

Forum Post: RE: Break point is did not work in GeneralJournalEntry table insert() method during PO invoice posting.

$
0
0
You can uncheck 'Execute code in CIL' check box from tools- Options for testing.

Forum Post: RE: Item L0025 is included circularly in the bill of materials.

$
0
0
Hi Michalis, Have you changed something on the BOM and possibly included L0025 as material that is consumed during production? In my demo environment there is only one part (M0025) that is included in the L0025 BOM. Can you share some additional information on what you did when this message was triggered? Many thanks and best regards, Ludwig

Forum Post: Material Forecasting

$
0
0
Does Dynamics 365 support Material Forecasting?

Forum Post: RE: Cannot select Date from Date Field in Enterprise portal

$
0
0
Hi Ajit Srivastava, thanks for your reply yes it is custom form and i made deploy,refresh cuches ,and reset iis but still not solved

Blog Post: Dynamics 365 For Operations: Pack your data in ZIP folder

$
0
0
Hello guys, Today, I would be sharing the code in D365 FO to pack your data (can be Xml, Excel, Word etc.) in ZIP folder. using System.IO. Compression ; class SBSCreateZipFile { /// /// Runs the class with the specified arguments. /// /// The specified arguments. public static void main( Args _args) { SBSCreateZipFile file = new SBSCreateZipFile (); File.createAndDownloadExcelFileViaZip(); } public void createAndDownloadExcelFileViaZip() { const str extensionZIP = '.zip' ; const str extensionExcel = '.xlsx' ; System.IO. Stream workbookStream = new System.IO. MemoryStream (); System.IO. MemoryStream memoryStream = new System.IO. MemoryStream (); using ( var package = new OfficeOpenXml. ExcelPackage (memoryStream)) { var worksheets = package.get_Workbook().get_Worksheets(); var worksheet = worksheets.Add( "First sheet" ); var cells = worksheet.get_Cells(); var cell = cells.get_Item( 1 , 1 ); cell.set_Value( "Customer id" ); package.Save(); } memoryStream.Seek( 0 , System.IO. SeekOrigin ::Begin); //File::SendFileToUser(memoryStream, "ExcelTesting_Vishal.xlsx"); // TO download only excel i.e. .xlsx str formDataFileName = "VishalTiwari_Package" ; str formDataFileNameXML = "ExcelTesting_Vishal" ; System.IO. MemoryStream zipArchiveStream = new System.IO. MemoryStream (); using (ZipArchive zipArchive = new ZipArchive(zipArchiveStream, ZipArchiveMode::Create, true )) { ZipArchiveEntry dataFileEntry = zipArchive.CreateEntry(formDataFileNameXML + extensionExcel); using (System.IO. Stream dataFileEntryStream = dataFileEntry.Open()) { memoryStream.CopyTo(dataFileEntryStream); } } File ::SendFileToUser(zipArchiveStream, formDataFileName + extensionZIP); } }

Forum Post: RE: Dynamics 365 for operations on-premise download

$
0
0
Thanks for your quick reply Ludwig I want to download Dynamics 365 for Operations (AX7) on premise version. is it available to download from Partner source or customer source. I read in some blog it's going to release in June 2017. it is released or not? Thanks, Krishna

Forum Post: RE: India GST Patch issue on AX 2012 R2?

$
0
0
Hello Akshay, I am also facing the same issue on ax 2009 I think you must have been through with this error. Can you suggest me what kind of steps you had taken to get rid of this error? I mean which package you installed. Please suggest the wayout. Your help is much appreciated.

Forum Post: How to modify main account value in LedgerDimension with X++

$
0
0
Hi, We would like to modify main Account value in LedgerDimension. I suppose the process should be firstly to find out if the new main account plus the others dimension existed or not. if yes , using the existed dimension , if not, create a new LedgerDimension with new main account and other dimensions. Is the process correct? and how to do it with x++? There are too many versions when I google it. Anyone can share a suggestion would be appreciated. Quatrani

Forum Post: RE: How to modify main account value in LedgerDimension with X++

$
0
0
Yes you would have to find\create the new ledgerDimension. You can refer below code - Container account; RefRecId ledgerDimension; account = ["1000", "1000",3,"LineOfBusiness","D", "Location","NA","Department", "IT]; ledgerDimension = AxdDimensionUtil::getLedgerAccountId(account); container account has main account and available dimensions, you can insert values in container through code as well.

Blog Post: Dynamics AX 2012 - Retail Transactions not Syncing

$
0
0
For those involved in Retail for AX, I ran into another first when working on upgrading to CU12 for AX 2012 R3. In short, POS transactions were not showing up in the Retail Store Transactions form in AX after a CU12 upgrade and clean installation of the retail components (message and store databases). Extensive searches within the community (credit where credit is due – I’ve included them all below), provided quite a few suggestions but to no avail. https://community.dynamics.com/ax/f/33/t/194793 https://community.dynamics.com/ax/f/33/t/165093 https://community.dynamics.com/ax/b/axtipsandtricks/archive/2017/04/08/issue-resolved-unsynced-records-from-retail-store-to-ax-db-p-0001-job https://community.dynamics.com/ax/f/33/t/212770 https://community.dynamics.com/ax/f/33/t/170572 https://community.dynamics.com/ax/f/33/t/147643 https://community.dynamics.com/ax/f/33/t/218402 http://amannain.blogspot.in/2016/07/ax-retail-pull-jobs-not-uploading.html https://technet.microsoft.com/en-us/library/dn305851.aspx https://fix.lcs.dynamics.com/Issue/Solution?bugId=3211092&qc=89a8f8258eeb407ac104401cd6d623b42f2b9fe9b6c2bbc1a7b5edaa65d32ec4 | What didn’t work (off the bat): Clearing the crt.TABLEREPLICATIONLOG in the Store DB. Truncating the ax.RETAILTRANSACTIONTABLE table in the Store DB. Truncating the UPLOADSESSIONS out of the message DB and in AX. Clearing the .rpf files out of the upload working folder After performing some SQL and AX traces and with some theories based on input from other community users, I went ahead and compared the MAX value for my store in the ax.RETAILTRANSACTIONTABLE.REPLICATIONCOUNTERFROMORIGIN table (in Store DB) against RETAILTRANSACTIONTABLE.REPLICATIONCOUNTERFROMORIGIN (in AX DB). This showed the store DB had a lower value than in AX and others had commented that this needs to be a higher value otherwise AX considers it to be old data which will not be updated in AX. Since the store database was installed cleanly using the AX installer, the first transaction started at 1 but multiple test transactions had been run through, bringing it up to 17, as you can see below. | | In the Store DB, this column is what is referred to as an Identity column and can’t just be manually changed using an UPDATE statement. Using the DBCC CHECKIDENT SQL command, I set the new identity value to be equal at the store , shown below, as in AX (based on Aman Nain’s article , and Rodolfo Recalde’s comments ). (DBCC CHECKIDENT'ax.retailtransactiontable', RESEED, new_identity_value ), which can be checked using; (DBCC CHECKIDENT ( 'ax.retailtransactiontable', NORESEED ) | | This was, as I discovered, only part of the answer . I generated a new transaction at the POS register and ran the P-001 Channel Transactions job and no luck. The RETAILTRANSACTIONTABLE was still not updating. So, after digging around, I noticed the Transaction ID in AX ( RETAILTRANSACTIONTABLE.TRANSACTIONID ) was higher than the transaction ID in the store DB ( ax.RETAILTRANSACTIONTABLE.TRANSACTIONID ). This reminded me of an article I had read and bookmarked earlier regarding updating the POS number sequences. Following the article, I selected the store and register in the Retail POS redeployment form in the Retail module and ran the calculation and got back numbers that were completely different than what was in both AX and the Store DBs. So, I found the MAX value for RETAILTRANSACTIONTABLE.TRANSACTIONID in AX and in the Retail POS redeployment form I set the value higher than that MAX value and then ran the 1160 Distribution job in AX. After the data packet had applied, I checked the values in ax.RETAILPOSSEEDDATA , in the Store DB and saw that my new values had taken affect and then I generated a new transaction from the POS register and ran the P job. VOILA! Transactions began syncing to the RETAILTRANSACTIONTABLE , and therefore to the Retail Store Transactions form! In summation, looking back on the issue and knowing what I know now I kicked myself a bit since it seemed rather obvious (hindsight is 20-20 after all), but I learned quite a bit more about how the data flows through the retail databases and wanted to share that, should anyone else run into an issue with upgrading to CU12. STEPS I started off this post with references to truncating tables. I later discovered that those steps were necessary, just not in the right order. So for the night of go-live, the steps taken and the order taken in were (for fresh installations): Perform all installations Log into POS which generates a transaction so the identity column updates from a NULL status (for ax.retailtransactiontable.replicationcounterfromorigin) Update the identity column value to be equal or higher than that in AX Update the ax. RETAILPOSSEEDDATA table. Truncate the RETAILCDXUPLOADSESSION out of the AX DB Clearing the .rpf files out of the upload working folder. Truncate the crt.TABLEREPLICATIONLOG in the Store DB. This will effectively clear everything and the transaction can be tracked from crt.TABLEREPLICATIONLOG to the UPLOADSESSION table in the message database where the UPLOADSESSIONID can be used to match to the session in AX once the upload job has run. | And as a last little handout, here is some SQL to quickly fetch back MAX values in case you have multiple stores to dig through (props to John Higdon helping me on writing them). AX DB – FETCH MAX COUNTER ID VALUE SELECT STORE, MAX (REPLICATIONCOUNTERFROMORIGIN) AS REPLICATIONCOUNTERFROMORIGIN from RETAILTRANSACTIONTABLE where STORE IN (‘YOUR’, ‘COMPANIES’, ‘STORE’, ‘VALUES’) GROUP BY STORE ORDER BY STORE STORE DB – FETCH MAX COUNTER ID VALUE SELECT STORE, MAX (REPLICATIONCOUNTERFROMORIGIN) AS REPLICATIONCOUNTERFROMORIGIN from ax . RETAILTRANSACTIONTABLE where STORE IN (‘YOUR’, ‘COMPANIES’, ‘STORE’, ‘VALUES’) GROUP BY STORE ORDER BY STORE AX DB – FIND MAX TRANSACTIONID (TO COMPARE AGAINST AX.POSSEEDDATA IN STORE DB) The functions here are based on the transaction ID sequence within our company and will have to be updated to work for another company. It will return the store, the transaction id without the ending sequence, the register number and the current transaction id. This was written based on a ###-####-###-#### number sequence. SELECT STORE, SUBSTRING(TRANSACTIONID,1,17) AS TRANID, SUBSTRING(SUBSTRING(TRANSACTIONID,19,len(TRANSACTIONID)),1,CHARINDEX('-',SUBSTRING(TRANSACTIONID,19,len(TRANSACTIONID)))-1) AS REGNO, MAX(CONVERT (INT,SUBSTRING(TRANSACTIONID,21,LEN(TRANSACTIONID))))+1 AS NEXTTRANID FROM RETAILTRANSACTIONTABLE WHERE STORE IN (‘YOUR’, ‘COMPANIES’, ‘STORE’, ‘VALUES’) GROUP BY STORE, SUBSTRING(SUBSTRING(TRANSACTIONID,19,len(TRANSACTIONID)),1,CHARINDEX('-',SUBSTRING(TRANSACTIONID,19,len(TRANSACTIONID)))-1), SUBSTRING(TRANSACTIONID,1,17) ORDER BY STORE, REGNO

Forum Post: RE: Cannot select Date from Date Field in Enterprise portal

$
0
0
Can you show us your code for that particular control from web control? It would be like as below.

Blog Post: Error when installing Reporting Extensions for AX2012 R3 on SQL Server 2016

$
0
0
On my previous post I wrote on installing Reporting Extensions for AX2012 R3 on SQL Server 2014. In this post I want to emphasize that the same hotfix for SQL 2014 is needed for SQL 2016. The error behaves slightly different on SQL 2016 if you do not have the patch. The setup experience simply crashes during install and while the components is ticked as "installed" next time you run setup, it is only "half-baked". You need to start over, this time with the hotfix ready. Here is a screenshot of the installer crash with "AxSetup.exe has stopped working". Ignore that it is on the SSAS step, I simply chose to install both extensions at the same time. The error actually relates to Reporting Extensions. And if you open the setup logs for further inspection, you will see it ends while trying to setup the SSRS bits. Here is an excerpt from the install log: 2017-07-05 11:30:56Z Setting the SQL Server Reporting Services service account to the Microsoft Dynamics AX .Net Business Connector account. 2017-07-05 11:30:56Z Generating database rights script. 2017-07-05 11:30:56Z Opening connection to the database using the connection string server=SERVER\INSTANCE;Integrated Security=SSPI. 2017-07-05 11:30:56Z Writing the database rights script to C:\Users\USERID\AppData\Local\Temp\3\tmpADC0.tmp. 2017-07-05 11:30:56Z Executing database rights script. I got this error even though the installation was slipstreamed with CU12, which is a later version, compared to the hotfix. So if you're planning on installing these bits for SQL 2016 (or SQL 2014), do yourself the favor of downloading the KB3216898 and slipstream your install by extracting it into your installation Update folder. Here is the link, again: https://fix.lcs.dynamics.com/Issue/Resolved?kb=3216898&bugId=3800976

Blog Post: Following Microsoft layoffs, Dynamics partners discover slashed support teams in some countries

$
0
0
Microsoft's new round of layoffs has resulted in deep cuts to teams that support Dynamics ERP and CRM partners in some countries. The findings, as reported by partner employees in various countries over the last few days, reveal complete ...read more

Forum Post: RE: Cannot select Date from Date Field in Enterprise portal

$
0
0
thanks alot Ajit Srivastava for you reply and your effort my code is: and please not that all dates in that user control can'nt select from it's date picker

Forum Post: Calculating the WIP Estimate on a Fixed Price Project

$
0
0
When calculating the WIP Estimate on a Fixed Price project, the actual posted item cost is being added to the Hours Forecast total Ran based on Total budget to actual. Why would this be happening?

Forum Post: RE: Error in enterprise portal page

$
0
0
thanks a lot Vilmos Kintera for your help, this error solved with me by disable (enableEventValidation="false") in web.config ,refresh caches,and reset iis thanks for your effort

Forum Post: RE: Cannot select Date from Date Field in Enterprise portal

$
0
0
Not sure what is causing that, some times browser settings matter. As you are trying, you can add auto post back tag (you can find above post) with true and try.
Viewing all 101540 articles
Browse latest View live


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