Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

Reset Quantity Reports

$
0
0

Hello, 

When I attempt to calculate an employees time it shows an error on the line. When I attempt to delete the line I receive the error "Cannot delete line because quantities have been reported. Reset quantity reports." When I attempt to restore lines I get an error saying journal lines exist for the employee in the previous month. 

These journal lines are for a production order I am trying to end, however there are no job card journals for this employee. Also, in addition to the production order not being ended last month, the employee has also been deactivated as they have moved to a different area of the company. 

Any help would be appreciated in determining what to do to resolve this. I am stumped. 


RE: Get the datasource from caller MenuItemButton

$
0
0

How are you checking whether it's the right object? Can you please look at which table you get when you call args.record()?

RE: Json array

$
0
0

Today you added a comment on my blog, but it seems you didn't read previous discussion. My explanation is there just above your comment. Let me copy it here for you:

I think you’re forgetting to identify the parameter.
If your parameter is int x, JSON will be { x: 2 }. If your parameter is List x, JSON will be { x: [ … ] }.
Therefore your actual JSON will be something like { startArray: [{ a : 2, b : 5 },{ a : 1, b : 3 },{ a : 9, b : 4 }]}.

RE: Project Item Requirements generating multiple sales orders

$
0
0

Hi Ludwig,

I have since had a developer look at the issue, and according to her there was a change in CU13 that AX is expecting the Price group on the Project  (blank  it is a fixed price project) to match the Sales order created - which has a price group that I'm not sure where it came from (not from the customer>sales order defaults).

"The logic that retrieves the sales order record that is associated with the current project record

(Tables\ProjTable\Methods\salesTable_ItemReq) has changed in CU13 SYP layer.

It uses Sales Price Group as an criteria now.

Since Sales Price Group on project “XXX” is empty,

and existing Sales Order (s) has (have Price Group = “ABC”,

AX creates a new SO.

Project Item Requirements generating multiple sales orders

$
0
0

We are suddenly getting multiple sales orders generated from the same project item requirements. I have one instance where on a Project 5 manually entered item requirement lines have generated 10 sales orders with no lines and one sales order with 5 lines. We have recently applied CU13.

I have looked at funding sources (1), currencies (1 - USD), addresses and everything I can think of to explain this behavior. Any thoughts?

RE: WorkTimeCopyDay class , copy method

$
0
0

Please use the </> button in the rich formatting view to post source code. It preserve indentation and therefore the code will be much more readable. Like this:

while select forupdate workTimeLine
    index TimeDayIdx
    where workTimeLine.WorkTimeId == workTimeId &&
    workTimeLine.WeekDay == fromWeekDay
{
    setprefix(strfmt("@SYS54524", time2str(workTimeLine.FromTime, -1, -1), time2str(workTimeLine.ToTime, -1, -1)));
    workTimeLine.WeekDay = toWeekDay;
    if (!copyPropertyId)
    {
        workTimeLine.PropertyId = '';
    }
    if (!workTimeLine.validateWrite())
    {
        throw error("@SYS18722");
    }
    workTimeLine.insert();
}


RE: Sales Order - Release To Warehouse 0 shipments created

$
0
0

Hi,

I found another reason that may lead you to the same issue. If you allow to "reserve ordered quantities" for the item. It will do the reservation (not physically) and it will not allow you to release the order and create the shipment/load/work, etc.

This happens when you reserve a Purchase order, for example, that has been ordered but you don't have it stock yet.

Hope it helps

Sales Order - Release To Warehouse 0 shipments created

$
0
0

Hi All,


I have a small number of sales orders that will not allow me to release them to the warehouse.  The inventory has been reserved and the order confirmation has been printed.  When I click on 'Release to Warehouse' i get a message that 0 shipments have been created. 


Interestingly enough if I look in the 'Release to Warehouse' program in the Warehouse Management module these SO are also missing from the list of available to release.


Fixed ledger dimension in D365

$
0
0

I´m developing an integration solution in D365 but I have problem with the ledger dimensions. It works fine to create the records in LedgerJournalTrans and the field ledgerDimension gets a value but if there is a a fixed value set on one of the main account it is never set. I have tried to explain my code below. The dimension values are added to a container and past on to LedgerDimensionDefaultingEngine together with Main account and Dimension Hierarchy. Sometimes dimension2 is not set from the file, then it should be set from a Fixed value instead but that is not working.

    // runable Job

    public static createDimensionJob(Args _args)
    {  
    container con;
    str 10                  dimension1 = "first";
    str 10                  dimension2 = "second";
    str 10                  dimension3 = "third";
   
    DimensionDefault defaultDimension;
    recId mainAccountRecId;
    recId dimHierarchyId;
    LedgerDimensionAccount ledgerDimensionAccount;
    LedgerJournalAC ledgerAccount = "1234";

    con = conIns(con, 1, dimension1);
    con = conIns(con, 2, dimension2);
    con = conIns(con, 3, dimension3);
          
    mainAccountRecId = MainAccount::findByMainAccountId(ledgerAccount).RecId;
    defaultDimension = MyClass::createDefaultDimension(con);
    dimHierarchyId = MyClass::getDimensionHierarchyId(ledgerAccount, defaultDimension);
   
    ledgerJournalTrans.LedgerDimension = LedgerDimensionDefaultingEngine::getLedgerDimensionFromAccountAndDim(mainAccountRecId, dimHierarchyId, defaultDimension);
    }
 
    //MyClass

    public static recId createDefaultDimension(container _conDimAttrValues)
    {
        DimensionFinancialTag               dimFinancialTag;
        FinancialTagCategory                tagCategory;
        DimensionAttributeDirCategory       dimAttrDirCategory;
        DimensionAttribute                  dimAttr;
        DimensionAttributeValue             dimAttrValue;
        DimensionAttributeValueSetStorage   dimAttrValueSetStorage;
        int                                 i;
        str 10                              strDimAttrValue;

        // Create storage
        dimAttrValueSetStorage = new DimensionAttributeValueSetStorage();

        for (i = 1; i<=conLen(_conDimAttrValues); i++)
        {
            strDimAttrValue = conPeek(_conDimAttrValues,i);

            if (strDimAttrValue)
            {
                // Find FinancialTag
                select firstonly RecId
                    from dimFinancialTag
                    where dimFinancialTag.Value == strDimAttrValue
                    join RecId from tagCategory
                        where tagCategory.RecId == dimFinancialTag.FinancialTagCategory
                    join RecId from dimAttrDirCategory
                        where dimAttrDirCategory.DirCategory == tagCategory.RecId
                    join dimAttr
                        where dimAttr.RecId == dimAttrDirCategory.DimensionAttribute;

                // Add to storage
                if (dimFinancialTag.RecId)
                {
                    dimAttrValue = DimensionAttributeValue::findByDimensionAttributeAndValue(dimAttr, strDimAttrValue);

                    if (dimAttrValue.RecId)
                    {
                        dimAttrValueSetStorage.addItem(dimAttrValue);
                    }
                }
            }
        }

   

RE: My Dropdown list disappear

$
0
0

Thanks much Aleks, I didnt really understand how to use EDTs but i have done some readying and now I understand. thanks for your help.

My Dropdown list disappear

$
0
0

Hello Guys,

Need to understand what is happening here. Some time ago I was tasked to implement classification of items in our DB.

This is what I have done

1. find a table in AX that would give me all the items numbers/codes

2. in that table I added the fields with the classification. 4 fields to be exact. I could now go to AOT open the table and see each item with their classification.

3. I then open EcoResProductDetailsExtended form and added the fields, my 4 fields to the design. I then compile and I was able to see the drop-down list(really don't recall doing anything else)

when I open an item I was able to click on the form and add classification to an item but today I tried to do that but my dropdown list has gone. the only thing that there is the last information. see image below.


as you can see there is no drop-down list. so if I want to change the brand for this item I cant. 

Pleas,e can anyone help me with this? I would really appreciate it.

RE: Error- 'Journal has already been posted and, consequently, is not open, Function Validate journal has been cancelled.'

$
0
0

Hi Ludwig,

I have done refreshing and logged in again but it didn't work.

I have debug this issue, system is posting this statement two times and getting this error. 'Journal batch number' sequence found blank in status, I removed it and tried again. But still the error is same.

Regards,

Spanish SII reporting version 1.1 in Microsoft Dynamics AX 2012 R2 Hotfix installation issue

$
0
0

Hi, 

Downloaded from this ref: https://support.microsoft.com/en-my/help/4134556/spanish-sii-reporting-version-1-1-in-microsoft-dynamics-ax-2012-r3-ax hotfix installation for R2:

http://download.microsoft.com/download/8/8/9/8890BD0E-E757-436C-9853-C145B36940A2/DynamicsAX2012R2-KB4134556.exe

However when try to run ImpactAnalysis or straight AxUpdate, I get Error to DynamicsSetupLog.txt

Which claims:

"Message: Could not load file or assembly 'DMF Labels, Version=6.2.3000.5407, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)

FullText: System.IO.FileLoadException: Could not load file or assembly 'DMF Labels, Version=6.2.3000.5407, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'DMF Labels, Version=6.2.3000.5407, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)

The Zone of the assembly that failed was:
MyComputer
at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
at System.Reflection.Assembly.LoadFile(String path)
at Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.ModelAssemblyReader.ModelAssemblyLoader.Validate()
at Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.ModelAssemblyReader.ModelAssemblyLoader.GetModelManifest(String modelAssemblyFileName)
at Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.ModelAssemblyReader.ModelAssemblyLoader.GetModelManifest(String modelAssemblyFileName)
at Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.ModelAssemblyReader.GetModelManifest(IList`1 modelFileNames, AppDomain appDomain)
at Microsoft.Dynamics.AX.Framework.Tools.ModelManagement.AxUtil.Manifest(IList`1 modelFileNames)
at Microsoft.Dynamics.Setup.Support.ModelManifestCache.LoadModelManifests(IEnumerable`1 filenames)
at Microsoft.Dynamics.Setup.Support.ModelManifestCache.PreloadModelManifests(IEnumerable`1 filenames)
at Microsoft.Dynamics.Setup.App.MainPart2(String[] args)
at Microsoft.Dynamics.Setup.App.Main(String[] args)

"

Is it something could be workarounded or MS should re-release this hotfix? 

RE: CustTransOpen

$
0
0

Is there a data Entity that references the CusTransOpen Table?   I only have access to Odata and am looking to build a report of Open Invoices.  

CustTransOpen

$
0
0

Hello Community, 

Might you please explain to me how and when records are created in CustTransOpen?

Kind regards, 

Jihane


RE: run method on client

$
0
0

Hi ievgen, i forgot to mention that, the variable is already captured? on the currentlist macro.

i've check all the code again and i think that the problem maybe that i created a new instance of extendedVendOutPaym class so this instance is empty while the value i'm trying to get is in another instance of that class, well i'm not sure about this since i can't find the instance where the date is storaged if it even exist

Getting errors importing BACPAC file to a new Azure SQL Database

$
0
0

Hi all, 

I Exported the database AXDB ( the SQL version is : SQL server Microsoft SQL Server 2016 (SP1-CU5) (KB4040714) - 13.0.4451.0 (X64)   Sep  5 2017 16:12:34   Copyright (c) Microsoft Corporation  Developer Edition (64-bit) on Windows Server 2016 Datacenter 6.3 <X64> (Build 14393: ) (Hypervisor))   with the command :

SqlPackage.exe /a:export /ssn:localhost /sdn:AxDB /tf:D:\Exportedbacpac\AxDBxxxUpdate.bacpac /p:CommandTimeout=999999999 /p:VerifyFullTextDocumentTypesSupported=false

and this command generated the .bacpac file with success after 8 hours. The size of DB is 300GB.

But I'm not able to import  BACPAC file to a new Azure SQL Database. When I tried to import in T2 enviroment with SQL Azure ( Microsoft SQL Azure (RTM) - 12.0.2000.8   May  4 2018 13:05:56   Copyright (C) 2018 Microsoft Corporation ) I receved this error :

C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin>SqlPackage.exe /a:import /sf:D:\dbAx_da_migrazioneVM\AxDBxxxxUpdate_old.bacpac /tsn:sxxxxxxxxxx.windows.net /tu:sqladmin /tp:password /tdn:AxDBdaMigrazioneVM /p:CommandTimeout=999999999 /p:DatabaseEdition=Premium /p:DatabaseServiceObjective=P2
Importing to database 'AxDBdaMigrazioneVM' on server 'xxxxxxx.windows.net'.
Creating deployment plan
Initializing deployment
*** A project which specifies SQL Server 2016 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12.
Verifying deployment plan
Analyzing deployment plan
Importing package schema and data into database
Updating database
*** Error importing database:Could not import package.
Warning SQL0: A project which specifies SQL Server 2016 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12.
Error Deploy72002: Value was either too large or too small for an Int16.

Value was either too large or too small for an Int16.

I Imported the bacpac on T2 machine with this command :

SqlPackage.exe /a:import /sf:D:\dbAx_da_migrazioneVM\AxDBGildoUpdate_old.bacpac /tsn:plld365uat-appdbserver-d8127cb3.database.windows.net /tu:sqladmin /tp:Uv3bTU**Y@O!!l /tdn:AxDBdaMigrazioneVM /p:CommandTimeout=999999999 /p:DatabaseEdition=Premium /p:DatabaseServiceObjective=P2.

Anyone helps me?

Thanks in advance.

Best ragards,

Gildo

Extending TransferOrderHeader Data Entity breaks $expand for TransferOrderLine

$
0
0

I have created a simple extension to the TransferOrderHeader data entity to expose the CreatedDateTime field from the InventTransferTable to enable our integration scenario with Scribe. 

Once the solution is built and the database sync is complete, the field shows up correctly in the OData endpoint:

Now that the change is showing, however, expanding the TransferOrderLine property fails, complaining that the property doesn't exist:

I don't understand how adding the new field broke the $expand property, but I don't see any other potential causes.  The test environment, where this package has not been deployed is not exhibiting this behavior, but the dev/build environment, which got this package via the most recent build, is.  The only other related change in the same model is the addition of a mapped property on the order line entity to surface the line's product's serial number from the InventDim data source.

I am very new to AX/D365O development, so I'm hopeful that there is a simple step that I'm missing.  I've successfully exposed other fields on other data entities without issue.  Any guidance will be greatly appreciated.

RE: run method on client

$
0
0

Did you remember to increment CurrentVersion by 1? If not, you will have to delete your usage data for this class before the newly added variable works. And so will all users, so it's better to increment CurrentVersion.

RE: Get the datasource from caller MenuItemButton

$
0
0

The table in args.record() is always the sourcetable of the first datasource. 

I check it with this code:

if(args.caller()!=null)
{
  fds = args.caller().dataSource();
  record = fds.getFirst(1);
  bIsMultiSelect=1;
}
if(record.RecId==0)
{
  if(args.record()!=null)
  record=args.record();
}


Viewing all 175888 articles
Browse latest View live