AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Generic Inquiry to ...
 
Notifications
Clear all

#AcumaticaTnT Generic Inquiry to Export Scenario

 
Page 1 / 2 Next
Acumatica Generic Inquiries & Pivot Tables
Last Post by Joni Girardi 3 years ago
20 Posts
6 Users
7 Reactions
7,467 Views
RSS
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
Topic starter
August 25, 2022 11:58 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I'm working with a client who has a large database in Acumatica. Their GLTran table has over 2.8 million records (yes, over 2,800,000 records).

As always, we'd like to be able to analyze this data with 3rd party tools. But we can't export to Excel because an Excel Sheet can only hold around 1 million records.

OData is an option, but it's REALLY SLOW on a large dataset like this.

So, I've been wondering if we could use an Export Scenario. Thanks to @shennelly at the Acumatica User Group in Ohio (AUG Ohio) tonight for telling me that it was possible.

I gave it a try and it worked. This is what I did...

 

1. Created a file in Notepad with the column headings that I wanted, separated by commas:

image

Note: I discovered that Acumatica wanted a second line or it didn't recognize the file. So, I just copied the first line and pasted it since that was the easiest thing to do.

 

2. Saved the file as a CSV file called My Vendor Export.csv:

image

 

3. Went to the Data Providers (SM206015) screen, populated the Name and Provider Type fields, then pressed Save:

image

 

4. Dragged and dropped the My Vendor Export.csv file onto the screen which attached it to the FILES area.

5. Pressed the RELOAD PARAMETERS button, then Save, which populated the Value column on the FileName row with the link to my uploaded file:

image

 

6. Clicked the SCHEMA tab, checked the Active box on the left-hand side, then clicked the FILL SCHEMA FIELDS button on the right-hand side, then Save:

image

 

7. Went to the Export Scenarios (SM207025) screen, gave it a Name, selected the Vendors (AP3030PL) Generic Inquiry in the Screen Name field, and clicked Save:

image

 

8. Populated the MAPPING tab as follows:

image

 

9. Went to the Export by Scenario (SM207036) screen, selected my Export Scenario, then pressed PREPARE (which populated the grid below):

image

 

10. Then pressed EXPORT which moved the data into my CSV file:

image

 

11. Clicked ... -> Get Latest Version which allowed me to download the latest version of the My Vendor Export.csv file to my computer:

image

 

12. Opened the My Vendor Export.csv file in Notepad and noted that I now have a populated CSV file!

image

 

I didn't go this far, but Stephen was encouraging me to try synching the file an SFTP folder which you could do like this:

image
image
image

 

Back to the client with 2.8 million records in their GLTran table, I tried this same approach in their environment. Unfortunately, the Export Scenario ran for 35 seconds, then returned this error message:

The Export Scenario ran for 35 seconds and returned this error message:
Denial Code 513. System was unable to process the request due to data size limits. Please review your operation and consider requesting a smaller dataset. Contact your provider for further assistance.


ncantral reacted
19 Replies
Jeffrey Patch
Posts: 38
 Jeffrey Patch
August 26, 2022 12:06 am
(@jeffrey-patch)
Trusted Member
Joined: 6 years ago

Hello Tim

Did you consider changing the "Maximum File Upload Size in KB" in the File Upload Preferences?


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3204
August 26, 2022 7:32 am
Reply toJeffrey PatchJeffrey Patch

@jeffrey-patch Excellent idea! I'll give that a try.


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3204
August 27, 2022 11:52 am
Reply toJeffrey PatchJeffrey Patch

@jeffrey-patch Thanks for the suggestion. I tried it, but it didn't seem to make a difference. There might be something in the Web.config file that will help, but I'll need to create a local environment before I can test that easily.


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
Topic starter
August 26, 2022 12:29 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Gabriel Michaud asked me via email if this works with any Generic Inquiry or just those tied to a data entry screen like the one used above.

It seems to work with any Generic Inquiry. Here are some screenshots of my GLTran export setup:

image
image
image

 

I tried the GLTran export in my local demo environment and it exported successfully:

image

 

I still need to try the suggestion from @jeffrey-patch to see if that will work in the client's environment.


Reply
Fred Reiter
Posts: 16
 Fred Reiter
August 28, 2022 12:26 pm
(@wfreiter)
Eminent Member
Joined: 6 years ago

This process should work with any GI.  I have lots of export scenarios based on GI that target both files and sql server data sources.


Reply
dave.ziskind
Posts: 16
 dave.ziskind
December 14, 2022 6:32 pm
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

Is there any trick to getting the Excel export to open without errors? I'm getting some kind of problem that appears to repair (see screenshots)

image
image

, but I need it to open cleanly since it will be sent to another system for automate consumption.


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3204
December 15, 2022 12:18 am
Reply todave.ziskinddave.ziskind

@dave-ziskind That's a weird error. I haven't tried the Excel export, only the CSV export so far.

I wonder if it's your first column since the tree data can get weird.

Maybe tree with a single column from a simpler dataset and see if you still get the error?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
December 14, 2022 10:38 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Could you please screenshot the errors rather than attach the doc?


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3204
December 15, 2022 12:16 am
Reply toRoyce LithgoRoyce Lithgo

@roycelithgo I just updated the post with screenshots.


Reply
dave.ziskind
Posts: 16
 dave.ziskind
December 15, 2022 1:46 am
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

@timrodman, thanks for the idea (and the screen shot conversion), but results same. Seems something with export function since exporting to Excel works fine. Might be time to re-build from scratch, but that's for another day.


Reply
Tim Rodman reacted
Royce Lithgo
Posts: 557
 Royce Lithgo
December 15, 2022 6:19 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Click on the link in the error message that opens the log file. You need to work out what is wrong with the data in the excel xml file. There should be some explanation in the log. 

The text in the box gives you the path to the source xml file. Change the extension of the .xlsx file to .zip and you can open it with windows explorer and find that xml file.

I'd also pass that xml file through an online xml validator. My guess is there's something in the file that's not confirming.


Reply
Tim Rodman reacted
dave.ziskind
Posts: 16
 dave.ziskind
December 15, 2022 9:26 pm
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

Thank you, @roycelithgo.

I've got the XML file and thought I had a breakthrough:

1. Thought maybe the data provider file was not clean enough, so I removed all format and review. The export opened clean the first time, but then started failing upon open.

2. Saw some data in the export with blanks after values, so those trimmed up in the GI, but opening export failed same.

3. Thought maybe data provider name (had - and .) might be an issue, but again got first export open clean and subsequent exports failed same.

I downloaded Notepad++ and think confirmed XML syntax, but don't know what to use for the XSD asked for when validating XML.

Any further leads would appreciated.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
December 16, 2022 2:10 am
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I was just thinking of whatever XML validator google search found.

eg.

https://www.xmlvalidation.com/

But what about the log file mentioned in your 2nd screenshot? That might have the explanation already.


Reply
Tim Rodman reacted
dave.ziskind
Posts: 16
 dave.ziskind
December 16, 2022 12:57 pm
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

@roycelithgo, below is the log file. Not sure it helps?

 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error031680_01.xml</logFileName>
<summary>Errors were detected in file 'C:\Users\Dave.Ziskind\Downloads\UKG Ready Project Task Import Spec for Automation Clean (2).xlsx'</summary>
<additionalInfo>
<info>Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.</info>
</additionalInfo>
</recoveryLog>


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
December 18, 2022 6:27 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Have you tried an XML validator yet? 


Reply
Tim Rodman reacted
dave.ziskind
Posts: 16
 dave.ziskind
December 19, 2022 5:37 pm
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

When run through any validator, it works fine after getting Row 1 on it's own line. Is that what we need to tell Acumatica to get this corrected or is this somehow under our control?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
December 19, 2022 9:19 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

XML doesn't need line breaks to be valid. Can you share the original XML if not confidential?


Reply
dave.ziskind
Posts: 16
 dave.ziskind
December 19, 2022 9:28 pm
(@dave-ziskind)
Eminent Member
Joined: 6 years ago

The whole thing is too big, but attached are the header, first, and last rows. Let me know if there is a better way to send full 24Mb file.

Partial.xml

 


Reply
Tim Rodman reacted
Page 1 / 2 Next
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,530 Topics
  • 11 K Posts
  • 6 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Negative/Credit Inventory Value?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • Johnny Tang
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×