Stack trace error when using standard AX auto report - axapta

I get a stack trace error (DictField object not initialized.
Stack trace
(C)\Classes\SysQuery\packDataSource - line 65
(C)\Classes\SysQuery\packDataSource - line 148
(C)\Classes\SysQuery\packRangeAndSortorder - line 37
(C)\Classes\SysQueryForm\querySave - line 18
(C)\Classes\SysQueryForm\buildSavedQueriesMap - line 21
(C)\Classes\SysQueryForm\buildSavedQueriesBox - line 8
(C)\Forms\SysQueryForm\Methods\run - line 5
(C)\Classes\SysSetupFormRun\run - line 9
(C)\Classes\QueryRun\prompt
(C)\Forms\SysTableForm\Methods\queryOpenDialog - line 10
(C)\Forms\SysTableForm\Designs\DesignList\QueryBtn\Methods\Clicked - line 4
)when I try to select a range for any auto report(Click select from the report dialog) when generating a standard ax auto report. This only happens when I try to generate the report in the details form.(It works fine on all listpages but fails in the detail page). To generate I go to File -> Print -> Print/Print Preview this shows a dialog then I click select to set the range. On click of select the error is thrown. Any ideas would be appreciated.

You need to reset your usage data.

Related

Intershop 7 - Problem adding a new index into database

I am trying to run a DatabaseIndexesPreparer through DBMigrate.bat and everytime it fails, therefore I have tried running needed SQL directly through Oracle SQLDeveloper and it also fails there with the same message.
This is the snippet I am trying to run:
EXEC staging_ddl.create_index('HWDB_ID_INDEX', 'PRODUCT', 'HWDBID', 'IS_INDX', 'NONUNIQUE', 0);
This is the result/message I receive:
ORA-00906: missing left parenthesis
ORA-06512: at "INTERSHOP.SQL_UTIL", line 149
ORA-06512: at "INTERSHOP.SQL_UTIL", line 49
ORA-06512: at "INTERSHOP.DDL", line 354
ORA-01403: no data found
ORA-06512: at "INTERSHOP.STAGING_DDL", line 235
ORA-06512: at line 1
00906. 00000 - "missing left parenthesis"
Additional info
All of this is done on Intershop 7.10.
HWDBID is a direct custom attribute (DCA) added successfully through DBMigrate following this cookbook:
https://support.intershop.com/kb/index.php/Display/L24707
The SQL snippet is also based on section 4 which deals with adding database index
Try this:
EXEC staging_ddl.create_index('HWDB_ID_INDEX', 'PRODUCT', '(HWDBID)', 'IS_INDX', 'NONUNIQUE', 0);
It seems like you always need to wrap the columns in parenthesis. From the example i found in 7.9 and 7.10 it is done like this.

Sales Order Confirmation Error

I am trying to confirm the sales order but I am getting error shown below. The environment is updated from CU1 to CU9 recently. I did Full Compilation and Full CIL and Incremental CIL with out errors. Can you please suggest what could be the issue?
Thanks in advance.
Error : Map object not initialized.
Stack trace
(S)\Classes\FormletterService\postJournal - line 52
(S)\Classes\FormletterService\run - line 221
(S)\Classes\FormletterService\postSalesOrderConfirmation - line 14
(S)\Classes\DictClass\callObject
(S)\Classes\SysOperationServiceController\runOperation - line 93
(S)\Classes\SysOperationServiceController\runServiceOperation - line 22
(S)\Classes\DictClass\callStatic
(S)\Classes\SysDictClass\invokeStaticMethod - line 26
(S)\Classes\SysDictClass\invokeStaticMethodIL - line 39
(S)\Classes\SysOperationRPCFrameworkService\runServiceOperation - line 5
(C)\Classes\SysOperationServiceController\runOperationWithRunAs - line 7
(C)\Classes\SysOperationServiceController\run - line 22
(C)\Classes\FormLetterServiceController\run - line 3
(C)\Classes\SalesFormLetter\run - line 95
(C)\Classes\SalesFormLetter\main - line 138
(C)\Classes\FormFunctionButtonControl\Clicked
The error is caused because the docuRefRecIdsPerJournalMap variable of class FormLetterService is not initialized. Debug method initDocuRefRecIdsPerJournalMap where this variable gets initialized and also method run where the initialization method gets called. You may also have to check classes that extend from FormLetterService and overwrite any of these methods or change the docuRefRecIdsPerJournalMap variable. Also check if you have any customizations on these classes.
Try to 'Compile forward' the base class FormletterService and afterwards do a full CIL compilation again
Hope that helps

Report in AX 2012 does not open;List of errors

I have created a report in AX 2012 and Visual Studio properly but once I try to open it the following list of erors appears:
Thank you
Error executing code: FormRun (data source) has no valid runable code in method 'new'.
Stack trace
(C)\Classes\FormRun\new
(C)\Classes\SysSetupFormRun\new - line 4
(C)\Classes\ClassFactory\formRunClassOnClient - line 10
(C)\Classes\ClassFactory\formRunClass - line 24
(C)\Classes\DialogForm\doInit - line 12
(C)\Classes\Dialog\doInit - line 12
(C)\Classes\Dialog\doRun - line 24
(C)\Classes\SysOperationDialog\run - line 12
(C)\Classes\SysOperationController\dialogShow - line 6
(C)\Classes\SysOperationController\dialogRun - line 40
(C)\Classes\SysOperationController\prompt - line 9
(C)\Classes\SrsReportRunController\runToScreen - line 26
(C)\Classes\SrsReportRunController\runReport - line 68
(C)\Classes\SrsReportRunController\run - line 27
(C)\Classes\SysOperationController\startOperation - line 10
(C)\Classes\SrsReportRunController\startOperation - line 12
To me, this is mostly base code, so it's a compile or CIL-compile issue most likely.
Have you compiled your CIL or performed an incremental CIL compile?
Refresh your report caches (Tools>Caches>Refresh Report Server).
Are the WCF settings in the AXC used for the report server refreshed?
Is the report server using a specific AXC that may not be refreshed? (https://technet.microsoft.com/en-us/library/hh389774.aspx)
You can find that the issue is with form (as the infolog suggest). The name of the form can be found out if you debug the code in classes.
Try putting debugger on DialogForm.doInit(). In this method, you can find the name of the form in the object variable, "form", used inside this method in a call to args.object(form).
You have to compile this form; Restore it and report does get generated.
Remember, DialogForm.doInit() gets called 2 times, Once, launching input UI form and another when trying to launch report viewer. So if the input/contract form is getting opened and the error comes before showing the report output, its the second time when you are interested to find the name of the form.
In my case, culprit forms were, SysOperationTemplateForm and SRSReportViewer form.

Internal Death while parsing [stdin] cPanel

When I try to modify an account via cPanel WHM ,I got below error.
~~~
[2015-07-30 10:49:36 -0400] die [Internal Death while parsing [stdin] 11431] DBD::SQLite::st execute failed: database disk image is malformed at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 56.
Whostmgr::Bandwidth::catch {...} (Cpanel::Exception::Database::Error=HASH(0x72432a0)) called at /usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/Try/Tiny.pm line 104
Try::Tiny::try(CODE(0x7238338), Try::Tiny::Catch=REF(0x4918f48)) called at /usr/local/cpanel/Whostmgr/Bandwidth.pm line 58
Whostmgr::Bandwidth::getmonthbwusage("username", "advicetr") called at whostmgr/bin/whostmgr.pl line 4366
main::edituser() called at whostmgr/bin/whostmgr.pl line 598
DBD::SQLite::st execute failed: database disk image is malformed
at /usr/local/cpanel/Cpanel/Exception.pm line 151.
Cpanel::Exception::new("Cpanel::Exception::Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 57
Cpanel::Exception::create("Database::Error", Cpanel::ExceptionMessage::Raw=SCALAR(0x49ea7e0), HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/Exception.pm line 72
Cpanel::Exception::create_raw("Database::Error", "DBD::SQLite::st execute failed: database disk image is malformed", HASH(0x7242d48)) called at /usr/local/cpanel/Cpanel/DBI.pm line 105
Cpanel::DBI::_create_exception(Cpanel::DBI::SQLite::st=HASH(0x72387a0), "DBD::SQLite::st execute failed: database disk image is malformed", undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 93
Cpanel::DBI::_error_handler("DBD::SQLite::st execute failed: database disk image is malformed", Cpanel::DBI::SQLite::st=HASH(0x72387a0), undef) called at /usr/local/cpanel/Cpanel/BandwidthDB/RootCache.pm line 390
Can any know this issue.
Can you please try to update your cPanel/WHM with the following command.
/scripts/upcp –force
Since the error message involved bandwidth, I moved the /root/.bwusage.sqlite file out of the way and ran /usr/local/cpanel/scripts/build_bandwidthdb_root_cache_in_background
This generated a new .bwusage.sqlite file which should solve this issue.
Fixed !!!

106 Pixel Adalight Config

I'm trying to set up a 106 pixel Adalight configuration around the TV in my family room. Anyway, the Processing IDE is telling me there's an unexpected token: { in this line
{0,1,0}, {0,2,0}, {0,3,0}, {0,4,0}, {0,5,0}, {0,6,0}, {0,7,0}, {0,8,0}, {0,9,0}, {0,10,0}, // Top edge
I can't find where there's an out of place {
Here's the entire section of code
http://pastebin.com/ZxiWbTu9 (It wasn't all going in as code, sorry.)
You are missing a comma at the end of the previous line, and on lines 7 and 9.

Resources