Dear All,
I have to attach file from batch job which are scheduled on server. I have used below codes and it is not working.
same code using add(docuref,_name) method works if i run batch job manually and this is due to class docuactionarchive class is running on client and also using winapi methods which runs on client.
then i Tried to use method insertDocuValue(docuRef, _name) then also it is not working
i have application server, database server and on users system client is installed so they will be providing me path of file which needs to be attached from there system to destination folder which is mentioned in active directory.
data will be provided in sql table, so first i am reading and then written below code but it is not working when batch server is running.
it enters path provided in doruref table but file is not copied to destination folder , so when i am trying to open file it says file does not exist on destination folder path.
tsBegin;
docuRef.clear();
docuRef.RefRecId = _InventBatch.RecId;
docuRef.RefTableId = tableNum("InventBatch");
docuRef.RefCompanyId = curext();
docuRef.Name = _name;
info(_name);
docuRef.TypeId = type;
docuRef.insert();
//this code will be used for attachement of file
archive = new GOD_DocuActionArchive();
//archive.add(docuRef, _name);
// above commented code is used to attach from clients even if batch job run manually through menu items it works fine.
archive.insertDocuValue(docuRef, _name);
// later this method is used but it is not generating sequence no and not copying file to destination folder.
Attachment of file from batch job running on server
RE: Exchange Difference Between Trial Balance and Custumor Transaction
RE: Use of asterisk or wildcard workflow conditions AX 2009
Hello Reynaldo, was there any solution to this?
Use of asterisk or wildcard workflow conditions AX 2009
Hi,
AX Version: 2009
Application version: Release, fresh VM installed and downloaded demo data from Partnersource
We are facing an issue where in we cannot use asterisk (*) after a string to indicate a wildcard for workflow conditions. Say we are looking for items that DOES NOT start with 11 then we would use IS NOT value 11* for workflow conditions.
The problem is workflow is treating the string as a whole (like 11* not 11 then leading characters) which is still an assumption based on testing (i hard coded the item number and it did meet the criteria) so please correct me here if mistaken.
Sample data.
I have 3 purchase requisitions
Reqid 10001 with itemid 1102
Reqid 10002 with itemid 9101
Reqid 10003 with itemid 8009
Now i created a standard workflow as shown below
So, when i add a condition (as shown below), where PurchaseLineRequisition.Item Number "IS NOT" value 11*
I was hoping that AX will read it as a condition where ITEMS that DOES NOT (which are Req10002 and Req10003 ) start with 11 will be true and ITEMS that DOES (req10001) start with 11 will be FALSE, instead it returns TRUE to both.
Req10002 and Req10003 TRUE
now REQ10001 where in the ITEM is 1102 should return false because we are expecting that it should NOT meet the workflow condition IS NOT value 11* but instead still returns TRUE because what we think is that it does not recognise the use of ASTERISK as wildcard as part of the search string.
Can anyone confirm if this is a limitation to Dynamics AX 2009 workflow or if there is a step we are doing wrong here? :) Would appreciate the help a lot (and promise to confirm the answer once verified :) )
Many thanks,
Reynaldo
List of SSRS reports as a drop down list
Hi I'm setting up a system for auto-emailing reports to our customers.
I need to be able to associate a customer with reports that get emailed to that customer. I figure I can to this by creating a table that stores customer and report/design. Is there an extended datatype or something that will allow my table to produce a list of SSRS Reports or do I need to generate that list myself?
Any ideas would be appreciated.
Thank You!
RE: Data Upgrade 7.3 deployment fails at step 14 (GlobalUpdate script for service model: RetailServer on machine) when doing DB upgrade from 7.1 to 7.3
I was able to crack the issue .
We need to enable change tracking on SQL DB first and then run below script in DB
IF NOT EXISTS (SELECT * FROM sys.change_tracking_tables WHERE object_id = OBJECT_ID('dbo.RETAILCHANNELTABLE')) BEGIN ALTER TABLE RETAILCHANNELTABLE ENABLE CHANGE_TRACKING WITH (TRACK_COLUMNS_UPDATED = ON); END
Restart SQL server services .
Resume the step and package scripts will run successfully.
Data Upgrade 7.3 deployment fails at step 14 (GlobalUpdate script for service model: RetailServer on machine) when doing DB upgrade from 7.1 to 7.3
I have a local VM of D365 Fin&Oper 7.3 and I'm trying to deploy data upgrade 7.3 package through LCS on Imported database. I'm doing the binary updates via the runbook, and when it gets to step 14 , it failed .
Runbook :
Logbook :
Please suggest how to proceed from this step . We are really stuck on this since 4 hrs now .
RE: List of SSRS reports as a drop down list
HI brianmaric ,
I am not aware of any out of the box EDT . Few things to look at
1. batch form (View tasks) where class name look up is filled by using list. look at getClassNames method of BatchRun class
2. Print management stores report design per document type in PrintMgmtReportFormat table. You can look around that functionality to get some useful code
RE: Data Upgrade 7.3 deployment fails at step 14 (GlobalUpdate script for service model: RetailServer on machine) when doing DB upgrade from 7.1 to 7.3
Your suggestion worked in my case. Thank you so much.
RE: How to send a report as mail(PDF) ?
Here is link for sample code
ax-desire.blogspot.com/.../x-code-to-mail-report-in-ax-2012.html
How to send a report as mail(PDF) ?
Hi All,
I am trying to send a report as an attachment to the user
Ap->payment Journal ->lines ->print ->new button.
while user selects the line record and click on the new button .the system automatically send the selected record report as a pdf .directly to the end-user using controller class.
so can one provided me a sample code how to do that ???
Thanks in advance !!!
RE: Export model in AX2012 R3 using axutil command
Correction:
Export-AXModel -Model "USR Model" -File "c:\temp\USR_Model.model" - .model extension was missing, also watch out there is no space between Export-AXModel.
Export model in AX2012 R3 using axutil command
Hi,
I tried export a model in AX i got the error 'Model usr not found'
C:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>
axutil export /model:usr /file:C:\usr.axmodel /config:DynamicsAX
Could you please help me out.
RE: Counting journal post using x++
Hi,
if i post through job.
It is posting perfect
but when i open the lines journal and trying to post that it is throwing error.
Regards.
Have a great day
RE: How can we define Unique Product Variant Weights?
Hi,
don't know if you can use the Physical Dimensions by Product Variant in Advanced Warehouse for that. Never used.
See hardcopy in similar thread
community.dynamics.com/.../796383
Regards Douglas
RE: List of SSRS reports as a drop down list
RE: List of SSRS reports as a drop down list
RE: Best Practice for Working with data in AX 2012
Thank you Ada Ding and Martin Drab!
Please suggest any good resource to learn Query Objects.. query created in run time.
Best Practice for Working with data in AX 2012
Hi All,
I am currently learning AX 2012. Today I found that there are three different way to work with data.
1. While Select - Tables as Object. (Easy one)
2. AOT Queries- In AOT Groups
3. Query Objects-
What are their individual features, limitation and uses?
RE: Error when release Financial Statement (Traditional)
Hi Febriani,
What exactly do you mean with releasing here? Printing? Can you elaborate how you did do the setup of the rows and the columns? I haven't seen this error before. My first thought it could be related to column number 15 in the setup, but you have to share more details about your setup to be able to help you.