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

How to setup customer CreditLimit Check for Protest Journal validation ?

$
0
0

Hi Everybody

Can we setup in standard a way to check or not CreditLimit when validating a Customer Protest Journal ?

By now, I'm just basing on customer posting profile which i check by coding (hardcoded) in CustVendVoucher Class (Method  : validate()), and when this posting profile is related to Protesting so I miss this CreditLimitCheck (When making a PackingSlip or Invoice, this check is mandatory of corse), so to not be missed!), like this :

public boolean validate()
{
    boolean ret = true;
    ;
    

// PostingProfile check added by me if (postingProfile == "MyProtestProfile"){ ret = true; }else { if (ret && !this.parmBypassCreditCheck() && !this.isAmountBelowCreditMax(typeOfCreditmaxCheck) && !this.postingProfileSettlement()) { ret = false; } } return ret; }

The standard Method was like that :




public boolean validate()
{
    boolean ret = true;
    ;
    
        if (ret && !this.parmBypassCreditCheck()   &&
            !this.isAmountBelowCreditMax(typeOfCreditmaxCheck) && !this.postingProfileSettlement())
        {
            ret = false;
        }

    
    return ret;
}

My Account receivable parameters are like what you can see in the attached picture.

Thanks in advance :)


How to get email id from report to position

$
0
0

Dear all

Version Ax 2012 R3

I want to get the email id  for report  to position   from =>  Human resources/Common/Organisation/Positions/Positions

 

Best Regards

Tony

PROJECT FORECAST AFTER APPROVAL PROJECT BUDGET FIXED PRICE PROJECT

$
0
0

after i approved project budget . hour forecast  =0  I already get Solution for this problem because i didn't make payroll allocation setup . now how i solve this problem after project budget approval to get value for forecast hour 

   

Add new column to AxGridView

$
0
0

Hello,

I want to add a new field column with a inventory dimension (configId) to an AxGridView, but the problem is that all others columns are from a different DataSetView.

The EP page is EPSalesTableList.aspx and when I open a sales order it load the EPSalesTableInfo webcontrol.

<dynamics:AxGridView ID="gridEPSalesTableInfo1" runat="server" DataKeyNames="RecId,InventDim!inventDimId"
            DataMember="SalesLine" DataSourceID="dsEPSalesTableInfo" AllowPaging="true" ShowFilter="false">
            <Columns>
                <dynamics:AxHyperLinkBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="ItemId" SortExpression="ItemId" MenuItem="EPInventTableInfo" />
<dynamics:AxReferenceBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="SalesCategory" SortExpression="SalesCategory"/>               
                <dynamics:AxBoundFieldGroup DataSet="EPSalesTableInfo" DataSetView="SalesLine" FieldGroup="InventDim!InventoryDimensions" />
..........................................
                <dynamics:AxBoundField DataSet="EPSalesTableInfo" DataSetView="SalesLine" DataField="LineAmount" SortExpression="LineAmount" />
            </Columns>
</dynamics:AxGridView>

The AxGridView DataMember is SalesLine, but the column that I want to add is from the same DataSet but different DataMember (InventDim).

If I put DataSetView="InventDim" en the column, It says that is not a member of that DataMember...

¿Any help please?

Thanks in advance.

Dynamics AX initial SSAS database processing gets stuck

$
0
0

Hi All,

I get into an issue while AX cubes processing. A clean AX installation was performed based on SQL 2016 but SQL version is not an issue since there is another installation based on exactly the same version and it works perfectly.

I tried to change some SSAS parameters according to the following articles:

https://blog.calvett.co.uk/2009/04/05/analysis-server-appears-to-hang/

https://blogs.msdn.microsoft.com/psssql/2007/01/16/processing-appears-to-stall-or-become-sluggish-on-multi-processor-machines-running-analysis-services-2005/

The result was the same - dimensions' full processing always gets stuck on a query when SRSANALYSISENUMS table is used, i.e.:

SELECT [BASEENUM_PurchLineDeliveryPrecision].[ENUMITEMVALUE] AS [BASEENUM_PurchLineDeliveryPrecisionENUMITEMVALUE0_0],[BASEENUM_PurchLineDeliveryPrecision].[ENUMITEMNAME] AS [BASEENUM_PurchLineDeliveryPrecisionENUMITEMNAME0_1]
FROM 
(
SELECT A.ENUMITEMVALUE, A.ENUMITEMLABEL AS ENUMITEMNAME FROM [DBO].SRSANALYSISENUMS A WHERE A.ENUMNAME = 'PurchLineDeliveryPrecision' AND A.LANGUAGEID = 'en-us'
)
 AS [BASEENUM_PurchLineDeliveryPrecision] 


or

SELECT [BASEENUM_NoYes].[ENUMITEMVALUE] AS [BASEENUM_NoYesENUMITEMVALUE0_0],[BASEENUM_NoYes].[ENUMITEMNAME] AS [BASEENUM_NoYesENUMITEMNAME0_1]
FROM 
(
SELECT A.ENUMITEMVALUE, A.ENUMITEMLABEL AS ENUMITEMNAME FROM [DBO].SRSANALYSISENUMS A WHERE A.ENUMNAME = 'NoYes' AND A.LANGUAGEID = 'en-us'
)
 AS [BASEENUM_NoYes]

or

SELECT [GENERALJOURNALCUBE_DIM].[TRANSACTIONTYPE] AS [GENERALJOURNALCUBE_DIMTRANSACTIONTYPE0_0],[GENERALJOURNALCUBE_DIM].[PERIODCODE] AS [GENERALJOURNALCUBE_DIMPERIODCODE0_1],[GENERALJOURNALCUBE_DIM].[POSTINGLAYER] AS [GENERALJOURNALCUBE_DIMPOSTINGLAYER0_2],[GENERALJOURNALCUBE_DIM].[POSTINGTYPE] AS [GENERALJOURNALCUBE_DIMPOSTINGTYPE0_3],[BASEENUM_LedgerTransType].[ENUMITEMNAME] AS [BASEENUM_LedgerTransTypeENUMITEMNAME1_0],[BASEENUM_LedgerTransType].[ENUMITEMVALUE] AS [BASEENUM_LedgerTransTypeENUMITEMVALUE1_1]
FROM 
(
SELECT TRANSACTIONTYPE.ENUMITEMVALUE TRANSACTIONTYPE , PERIODCODE.ENUMITEMVALUE PERIODCODE , POSTINGLAYER.ENUMITEMVALUE POSTINGLAYER , POSTINGTYPE.ENUMITEMVALUE POSTINGTYPE FROM ( SELECT DISTINCT ENUMITEMVALUE FROM [DBO].SRSANALYSISENUMS WHERE ENUMNAME = 'LedgerTransType' ) TRANSACTIONTYPE CROSS JOIN ( SELECT DISTINCT ENUMITEMVALUE FROM [DBO].SRSANALYSISENUMS WHERE ENUMNAME = 'FiscalPeriodType' ) PERIODCODE CROSS JOIN ( SELECT DISTINCT ENUMITEMVALUE FROM [DBO].SRSANALYSISENUMS WHERE ENUMNAME = 'CurrentOperationsTax' ) POSTINGLAYER CROSS JOIN ( SELECT DISTINCT ENUMITEMVALUE FROM [DBO].SRSANALYSISENUMS WHERE ENUMNAME = 'LedgerPostingType' ) POSTINGTYPE 
)
 AS [GENERALJOURNALCUBE_DIM],
(
SELECT A.ENUMITEMVALUE, A.ENUMITEMLABEL AS ENUMITEMNAME FROM [DBO].SRSANALYSISENUMS A WHERE A.ENUMNAME = 'LedgerTransType' AND A.LANGUAGEID = 'en-us'
)
 AS [BASEENUM_LedgerTransType]
WHERE 
(
(
[GENERALJOURNALCUBE_DIM].[TRANSACTIONTYPE] = [BASEENUM_LedgerTransType].[ENUMITEMVALUE]
)
)

Execution of the last query returning almost 127k records takes  ~500ms.

Some more details:

  • This is run in a non-production VM with 2 CPU cores, 8GB RAM containing only SSRS and SSAS components;
  • SSAS project gets delpoyed properly;
  • Demand forcast cubes get processed without any problems;
  • Values tested for ThreadPool \ Process \ MaxThreads : 1, 2, 4, 8, 32, 64, 150;
  • When XMLA script for processing dimensions is divided into smaller scripts all dimensions get processed. The thing is that AX database is empty so there is no guarantee it will work when data exists. 

Has anybody faced this problem?

item from purchase order line got deleted

$
0
0

Hi  to all

I have 5 Product receipt and against each product receipt i have posted some items

Product receipt=2367

itemx=10

itemy=10

i have invoiced this Product receipt.

Now.after posted the invoice of this product receipt then the item in the all other product receipt got deleted in purchase order line.

Kindly suggest why the system deleted the item from the purchase order line instead of product receipt is posted for these item.

Case activities default to person raising case

$
0
0

Hi all

Running AX 2012 R3 CU9

Have a business requirement which sounds simple but I cannot see a way of easily doing this.

We have cases which create activities that integrate with Enterprise Portal/Outlook calendars. These activities allow you to assign a default person responsible for the Activities. However, I can't see a way of defaulting in the responsible person for the activity to be the person who actually raised the case.

If left blank, it will just default to no-one responsible

Any help would be much appreciated

Cheers

Luke

ActivityRuntime System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list error while Export Recurring Data Job running-D365FO.

$
0
0

Hi All,

I'm getting  an issue while Export Recurring Data job running.This DataJob created for Custom Composite Entity.I found below description  from Eventlog.

Currently I'm testing this Data job using Google Postman tool and getting issue in Dequeue Operation.

The description for Event ID 6 from source Microsoft-Dynamics-AX-ActivityRuntime cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

ActivityRuntime
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Microsoft.Dynamics.Platform.Integration.Connectors.Runtime.IntegrationActivityRuntimeCodeMarker.WriteUnhandledException(Exception exception, String message, Object[] args)
at Dynamics.AX.Application.DMFIntegrationBridge.`Export(IntegrationBridgeContract bridgeContract) in xppSource://Source/ApplicationFoundation\AxClass_DMFIntegrationBridge.xpp:line 96
at Dynamics.AX.Application.DMFIntegrationBridge.DMFIntegrationBridgeCoCHelper.`Export(DMFIntegrationBridge instance, IntegrationBridgeContract arg0)
at Dynamics.AX.Application.DMFIntegrationBridge.Export(IntegrationBridgeContract bridgeContract)
at Microsoft.Dynamics.Platform.Integration.Connectors.Runtime.IntegrationActivityRuntime.<Export>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Dynamics.Platform.Integration.Connectors.Runtime.IntegrationActivityRuntime.<ExecuteIntegrationAsync>d__21.MoveNext()
Unhandled exception processing 'Id = 5637148326, Name = TestingOutbound, Direction = Outbound, Data project = TestingOutbound'.

The publisher has been disabled and its resource is not available. This usually occurs when the publisher is in the process of being uninstalled or upgraded.

Please suggest  me on this. 

Thanks


How to send workflow one user to another user

$
0
0

Hi Friends,

My requirement is if user submit the workflow then it go to second user, second user view the request and then second user send to third user and third user will approve it. Is this possible?

After submit process completed, in action button i want to remove approve menu button and place of approve menu button i want to add view menu button and if second user view the request then request should send to third user and third user should approve it.

Here, Place of approve menu button  i want to add view menu button and  approve menu button should remove.

Is this scenario possible?

Please share your information.

Thanks & Regards

Rahul. 

Cannot cancel purchase requisition

$
0
0

Hi,

When I cancel purchase requisition show this error anyone helps me.  

Post Inventory with no Financial impact in Inventory module

$
0
0

Dear Pioneers,

I have a requirement where my client Purchase an Inventory Item and maintain incoming/outgoing transactions in inventory for tracking. Our concern is, during purchase of an Inventory Item they prepare a GRN (to maintain the stock) and use Expense account to book the invoice (they want to expense it), once delivery received they will start issuing the items internally and the responsible person will have to check how much inventory is issued and available for that Item. The reason being is, they don't want to run inventory valuation for that particular item at the end of the year. We are using Dynamics AX 2012 R3 version.

Please advise if any solution for this.

Regards,

Durgarao.

DIXF error while preview memo field

$
0
0

Hi

We upgraded to SQL 2016, therefore SSIS and DIXF service was upgraded correctly.

Previewing a file is possible except it has a memo field. First the DMF Datatype VarString was added to the DMFDataTypeMapping.xml Ressource file and the mapping could be generated. But starting souce file preview crashes the DIXF service with the error below. Must this type be registered elsewhere?

System.ServiceModel.CommunicationException: An error occurred while receiving the HTTP response to ch10sv177/.../DMFServiceHelper.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host

   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   --- End of inner exception stack trace ---

   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)

   at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead)

   --- End of inner exception stack trace ---

   at System.Net.HttpWebRequest.GetResponse()

   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

   --- End of inner exception stack trace ---

GST blocked for settlement

$
0
0

Hi,

My client has a a sale tax code GSTBLOCKED where they are paying tax to vendor as a expense while raising invoice (created tax account as expense account) and it should not settled against payable. Although at the time of calculation direction is showing as "sale tax expense" But at the time of sale tax payment (settlement) that expenses account is also settling off with payable likewise sale tax receivable.  

Please let me know what I have missed to achieve this condition.

D365FO - Where to set up the Destination location in the Inventory locations form?

How to use Controller class with data provider class in SSRS report

$
0
0

Hello All,

I have one standard report used of controller class  query based report used  of Print management for multiple report print.

I need to add some business logic  to add some extra field in that report ,so I have added one DP classes and add our logic to retrieve the particular field.

Now report is opening but after clicking ok in dialog page  its throwing data set error.

Could you please suggest we can proceed with controller class and DP class ?

Please suggest  your suggestion.

Regards

Deepak


Object reference not set to an instance of an object in D365

$
0
0

Hi,

i just tried to create an customer in CustTable form.

When i clicked New button i'm getting an error "Object reference not set to an instance of an object"

is there any solution for this?

Thanks

Vignesh T

View Datasource OR Statement

$
0
0

I'm trying to define an OR Query range in the AOT and can't see how I can do that using drag and drop.

If I was writing pure SQL it would be something like 

SELECT SalesId,Email,Telephone FROM SalesTable WHERE Email <> '' OR Telephone <> ''

Is it possible to define a View's datasource as a Query and define the Query range in X++?

Thanks

Item Sales Tax by Item Report

$
0
0

This is going to sound like a silly question but I find myself going around in circles

I'm looking to generate a report that displays the items and the Sales tax applied to them. Is this possible? 

The Item Sales tax has all been set up 

Hopefully this makes sense but let me know if you need any information

Processing Rebate transaction not doing anything

$
0
0

Dear 

i am trying to process a rebate transactions , but nothing happens when i click on cumulate , or process , 

is there any setup that i am missing ?

regards

DMF Export to excel

$
0
0

Hi all,

I'm trying to add a button on DMFQuickImportExportEnhanced form that reads the selected Entities from the main grid and export all the information about their fields and properties, those information are stored in 3 tables Header / Lines / Denormalized. I have created both Entity and Staging table, i need to export the denormalized data but i only need some record so i have to select them with a query.

How can i query the data and next send it to DMFso i can create and download an excel file?

I'm creating the worksheet using OpenXML but it's too slow so i want to implement Data Import/Export Framework.

Viewing all 73760 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>