Dynamic Documents

Extended from another post: Report with Checkable checkboxes in PDF - Kinetic ERP - Epicor User Help Forum

I have created the document type, setup the dynamic document, assigned the template to an operation on a job, and released the job. Now I want to submit data to that dynamic document.

@SueLowden From your instructions:

The View ID indicates what application launches when you open the template.

I am not sure why we need to launch a form at all. From MES, the user chooses the job and operation they are working. When they click start production, I want them to see the dynamic document, fill it in, and submit it. I don’t need them to open another view.

Perhaps I am misunderstanding the point of the View ID. Why do we want to open another form when viewing work instructions on an operation? I only want to see the editable PDF that goes with the operation. Do I need to make a custom app to open the PDF? I thought this was the point of DD? Does one of those view IDs open the PDF?

I can see where it could be nice to have the operator submit information about the op they are working. My Dynamic Document is not bound to any fields. I have setup a basic template like this:

I see that View ID is required, so I have to put something there. Should I just make a blank view (application) and link it?

I have to use Erp.UI.ProductionInspection as the View ID. However. I get an error when trying to end activity in MES (which triggers the Erp.UI.ProductionInspection).

Debugging I can see these errors (and more). Something is not right here…

POST https://dc.services.visualstudio.com/v2/track 400 (Bad Request)

GET https://centralusdtpilotXX.epicorsaas.com/SaaSXXXPilot/apps/erp/home/assets/pdf-viewer/pdf-4.3.659.min.mjs net::ERR_ABORTED 404 (Not Found)

GET https://centralusdtpilotXX.epicorsaas.com/SaaSXXXPilot/apps/erp/home/assets/pdf-viewer/pdf-4.3.659.min.mjs net::ERR_ABORTED 404 (Not Found)

erp-rest-service [post] 400 - Bad Request Http failure response for https://centralusdtpilotXX.epicorsaas.com/SaaSXXXPilot/api/v2/odata/VTAERO/Ice.BO.PDFFormTemplateSvc/GetContent: 400 Bad Request; {“HttpStatus”:400,“ReasonPhrase”:“REST API Exception”,“ErrorMessage”:“Invalid path 0.”,“ErrorType”:“Ice.BLException”,“ErrorDetails”:[{“Message”:“Invalid path 0.”,“Type”:“Error”,“Program”:“Ice.Services.BO.Attachment.dll”,“Method”:“GetXFileRefDocType”,“LineNumber”:397,“ColumnNumber”:21}],“CorrelationId”:“3bfc42d5-6337-4049-99b8-4aabbd727e30”,“Program”:“Ice.BO.PDFFormTemplateSvc”,“Method”:“GetContent”}

More about my setup:




No page actions, no bindings. In MES I get the popup asking if I want to view the work instructions. But I get that invalid path 0 error. I have verified my local c:\Catalog folder is shared to “Everyone”. I cant figure out that invalid path 0 error.

I also tried a different Attachment type pointing to my local shared folder. I also tried using the shared folder name, and a networked folder.

Are you trying to use a dynamic document from your local file system?

I think so. The instructions I followed directed me to make that C:\Catalog and then share it.

I think the shared “\\Server\catalog” folder is only for Word to be able to pull the add-in functionality, and you may need to save all your Dynamic Documents on a different path. At least that’s the way I set it up and I’m not having any issues with that.

1 Like

I do have a separate network location I would like the files to go to. But I get the same error when I use that location.

1 Like