I am having a bit of an issue when trying to use a maintain application built in app studio to write to one of our tables.
Here are the errors I am receiving. Any insight on this would be a really big help. Thanks.
(FOC03847) MntEX Compile failed for Request1 (FOC03601) ERROR AT OR NEAR LINE 3 IN Request1 (FOC03604) YYMDy is not a valid format.
Here is my request code:
MAINTAIN FILE mdm_sls_rep_dim_na
$$Declarations
Case Top
Infer SLS_REP_DIM_ID into Inputstk
Infer SLS_REP_DIM_ID into Allstk
For all next SLS_REP_DIM_ID into Maxstk
Compute MaxSLS_REP_DIM_ID/i9L = MaxStk(Maxstk.foccount).SLS_REP_DIM_ID;
Winform Show Form1;
EndCase
Case AddToList
Compute MaxSLS_REP_DIM_ID = MaxSLS_REP_DIM_ID + 10;
Copy from Inputstk into allstk(allstk.foccount+1);
Compute allstk(allstk.foccount).SLS_REP_DIM_ID = MaxSLS_REP_DIM_ID;
endcase
Case IncludeRecs
for all include SLS_REP_DIM_ID from Allstk
Stack clear Allstk
endcase
Here is the master file for the table to be written to
Here is the HTML Code just drop this in a text editor:
< !DOCTYPE html>
< !-- Copyright 1996-2013 Information Builders, Inc. All rights reserved. -->
<script type="text/javascript"> //confidential_id=IBI_OptionsScript var bRuntime=true;var szHtmlAlias="./ibi_html/";var is_mobile="false";var loadingscreen="";var ib_composer="ib_composer";var emf="ib_composer_emf";var ibiOptions = new Array(ib_composer);document.write('<script src="'+szHtmlAlias+'ibigbl.js" type="text/javascript"><\/script>');<script type="text/javascript"> //confidential_id=IBI_ibigblloadCss if(typeof ibigblloadCss != 'function'){alert("JavaScript alias '"+szHtmlAlias+"' is not valid.");window.location("about:blank");}HtmlPage<script type="text/javascript"> //confidential_id=clientEventHandlersJS
if(typeof(bRuntime) != 'undefined') { // TODO: Add your inline runtime code here } //Begin function window_onload function window_onload() {
UpdateData();
// TODO: Add your event handler code here //add onInitialUpdate() function to make changes before initial run of the reports } //End function window_onload < !--//confidential_id=focus_xmlelement
I may be totally wrong, but I would try with a master file that don't have all the DEFINEd fields. Meaning a copy of MDM_SLS_REP_DIM_NA with a different name and without the DEFINEs. Any way MAINTAIN will not insert value for these fields they are virtual ones.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
June 04, 2018, 11:47 AM
Maintain Wizard
As we discussed, Maintain cannot use YYMDy fields. If you can change them to YYMD you won't get an error.