@hmwillett I will guess i select Company and then i run tracing to see what is the path generated?
You can also look at what @Epic_Santiago suggested to future-proof your cloud development by using the new file system sandbox commands.
@hmwillett
If Iâm uploading this csv to the kinetic screen ,can I use those rows to be added to something like quote lines? Like inserting the quote lines froma csv file , and if yes, how can I do that
This is a great tutorialâthanks for putting it together, @hmwillett!
Has anyone else experienced intermittent issues with the file-transfer widget? Iâve built (and rebuilt) a couple of layers on Order Entry due to a recurring bug. The goal is to upload a CSV using the file picker and then use the file to compare open orders against third-party customer order data using a BAQ and functions, returning the results to custom data views. The concept works well overall.
The issue Iâm seeing is that the âFile Picker Clientâ widget will randomly stop calling the FileTransferSvc/UploadFile
method from my event. I noticed this because changes made to the CSV file prior to upload sometimes arenât reflectedâthe function just uses the previously uploaded file.
When that happens, I can see the event is firing (confirmed via console), but the network trace shows no FileTransferSvc/UploadFile
method call. I have a working layer, but ran into a separate issue, so I rebuilt it differentlyâsolving one problem, but introducing another. Classic it seems for app studio.
Iâve tried deleting and re-adding the file picker and the related event, but the issue persists. It feels like the layer gets corrupted somehow, and the only reliable fix so far has been to start from scratch. Then it works⌠until it doesnât.
Working network trace:
Not working trace:
Event configuration for both layers (identical):
Whatâs in your condition? What does the network trace show when you click that button and it doesnât work?
Sorry, mean to include the console trace as well. The condition is simply making sure the filename uploaded to the picker matches what we expect it to be.
The bottom of that screenshot looks like it is calling the function after the condition evaluates to true? What does the network trace show?
Yes, the sequence in the event is to evaluate file name, if file name is correct, proceed with file upload, then call function which uses server file to complete comparison. The network trace is in my original post, the difference being that the working layer calls the âFileTransferSvc/UploadFileâ method, then the function. The non-working layer just immediately calls the function without executing the upload method.
Yeah I donât know, something isnât adding up. Either there is a difference in the layer, or that condition is being evaluated differently or something. I have seen a lot of times where my events do get corrupted/randomly disappear. Sometimes closing and reopening the event it looks totally different and what I saw on the screen wasnât actually what was executing at all.
This is good but when I try to use it in my situation I get this. Feature âusing declarationsâ not available in C# 7.2. Do I need to do something in order to use StreamReader and such?
Have you read the info on the sandbox method?
usings go on the Usings
tab in the editor.
I am working with an Epicor Kinetic function in a Library. I donât see a Usings tab. Is it in here and I am just missing it?
Thanks for the info. I donât have this though so I donât know what to do.
It would be helpful if you showed us what you actually do have instead of everyone trying to guess.
the issue is I canât get my Stream Reader to work and no where to set a using System.IO.
Iâm even spelling it out.
but donât see where to define the using System.IO
Youâre not getting an error. Youâre getting a warning.
This is because the cloud is moving to a Linux container soon.
When I try to instantiate a StreamReader it doesnât do it. I know this because I have a message immediately after and it never shows. I just want to read my csv file, line by line and apply it to a Grid Data Source.