Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10066 articles
Browse latest View live

Wrong approval workflow being triggered

$
0
0
Hi,

We are having an issue with a client of ours, when a approval is send out for a sales order the following occurs.

First of all just a small intro about the company and the way of working: the company has multiple locations throughout europe. They all work in the same database and company but some are working with the language set to dutch and other with the english version. This is where the problem begins.

Person A is designated to the sales order and should therefor approve the sales order. When the approval is send out the wrong workflow is triggered and the approval arrives at person B. We tested it and it appears to be caused by the language person A en B are using (both set to english). When we change the languages of person A to dutch and resend the approval the correct workflow is triggered and everything works fine.

We also changed the language of one of the dutch colleagues to english the same problem occurs and the wrong workflow is triggered.

Its regarding the following installation of Dynamics NAV 10.0.14199.9 (NAV 2017), I checked the workflows and they are all the same except from the salesperson code and the designated user, which should be, as all dutch users have the same alterations.

Has anybody else seen this happen or have a clue what could cause it?
Thanks in advance,
RJ

How to import the data through xmlport when received from Webservice?

$
0
0
I called external web service and when a response was received, I saved the XML file. Now I want to import the data from that XML file into the table. But with the XML file structure I am unable to import
Please let me know how the XML structure will look like? What properties needed to set? Or will these type of files imported only through code?



Codeunit
OBJECT Codeunit 90001 Web Service Test
{
OBJECT-PROPERTIES
{
Date=05-03-19;
Time=19:07:12;
Modified=Yes;
Version List=;
}
PROPERTIES
{
OnRun=BEGIN
WebServiceFunctionA;
END;

}
CODE
{

LOCAL PROCEDURE WebServiceFunctionA@5();
VAR
uriObj@1000 : DotNet "'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Uri";
Request@1001 : DotNet "'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Net.HttpWebRequest";
Stream@1002 : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.StreamWriter";
Response@1003 : DotNet "'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Net.HttpWebResponse";
Reader@1004 : DotNet "'System.xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Xml.XmlTextReader";
document@1005 : DotNet "'System.xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Xml.XmlDocument";
ascii@1006 : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Text.Encoding";
FileMgt@1007 : Codeunit 419;
FileSrv@1008 : Text;
ToFile@1009 : Text;
Xml@1010 : Text;
url@1011 : Text;
SoapAction@1012 : Text;
BEGIN
Xml := '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body>'+
'<GetHolidaysForYear xmlns="http://www.holidaywebservice.com/HolidayService_v2/">'+
'<countryCode>UnitedStates</countryCode>'+
'<year>2019</year>'+
'</GetHolidaysForYear>'+
'</soap:Body></soap:Envelope>';

url := 'http://www.holidaywebservice.com/HolidayService_v2/HolidayService2.asmx';
uriObj := uriObj.Uri(url);
Request := Request.CreateDefault(uriObj);
Request.Method := 'POST';
Request.ContentType := 'text/xml';
SoapAction := 'http://www.holidaywebservice.com/HolidayService_v2/GetHolidaysForYear';
Request.Headers.Add('SOAPAction', SoapAction);
Request.Timeout := 120000;


// Send the request to the webservice
Stream := Stream.StreamWriter(Request.GetRequestStream(), ascii.UTF8);
Stream.Write(Xml);
Stream.Close();

// Get the response
Response := Request.GetResponse();
Reader := Reader.XmlTextReader(Response.GetResponseStream());

// Save the response to a XML
document := document.XmlDocument();
document.Load(Reader);
FileSrv := FileMgt.ServerTempFileName('xml');
document.Save(FileSrv);

// Get from the server
ToFile := FileMgt.ClientTempFileName('xml');
FileMgt.DownloadToFile(FileSrv, ToFile);

// Show the response XML
HYPERLINK(ToFile);
END;

BEGIN
END.
}
}

XMLFILE

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
<soap:Body>
<GetHolidaysForYearResponse xmlns="http://www.holidaywebservice.com/HolidayService_v2/"&gt;
<GetHolidaysForYearResult>
<Holiday>
<Country>UnitedStates</Country>
<HolidayCode>NEW-YEARS-DAY-ACTUAL</HolidayCode>
<Descriptor>New Year's Day</Descriptor>
<HolidayType>Other</HolidayType>
<DateType>Actual</DateType>
<BankHoliday>NotRecognized</BankHoliday>
<Date>2019-01-01T00:00:00</Date>
<RelatedHolidayCode>NEW-YEARS-DAY-OBSERVED</RelatedHolidayCode>
</Holiday>
</GetHolidaysForYearResult>
</GetHolidaysForYearResponse>
</soap:Body>
</soap:Envelope>

Thanks in advance for the help.

How to modify the code inside the Standard function of Busiess Central ?

$
0
0
Hello,

I am doing an app for BC on cloud. I have written CAL code inside the function but now in BusinessCentral there is no events exists inside the function, so how can i add code inside a function ?

can i add more parameters to the standard functions ?

Example : Code added in ValidateShortcutDimCode function present in the Table 18 Customer.

Thanks&Regards,
Sainath.

Create New-NAVTableConnection

$
0
0
Hello
I am trying to make a TableConnection to connect to CRM/Microsoft Dynamics 365 for Sales Using the PowerShell command New-NAVTableConnection.

But I get this error:
g37w7n3yqpwx.png


Can someone tell me what to do ??

What are the results of changing these service settings (cache size, chunk size, comp. threshold)

$
0
0
I am curious if anyone knows exactly what can happen by changing these settings? Or even, what other factors on the server/data/etc should be taken into account with

These are the settings you can change per service tier using the Dynamics NAV Administration snap-in.

Data Cache Size
Chunk Size
Compression Threshold


The goal is to improve performance to remote clients over WAN. I am just wondering if these settings can help at all (or any other settings in the service tier).

Stylesheet in Javascript Control AddIn will not be applied

$
0
0
Hi,

I have created a simply Control AddIn, based on this article.

The javascript file will be applied. But not the Stylesheet. If I inspect the DOM in Webclient, the reference to the javascript file exists as espacted. The stylesheet is missing in the head-section.

Does anybody knows, what I'm doing wrong?

Navision is 2018-cu12-FI

get total quantity in transfer shipment report

$
0
0
Hello,

How to get total quantity in transfer shipment report.
I am using Dynamics Nav 2018 Windows Client.
I used sum in report builder but maybe due to grouping the total is incorrect.

Standard Costing Method on Items, but for controling purpose Avg. Costing report output needed.

$
0
0
Hi All,

It was hard to define a topic... ;)
One of our clients uses Standard Costing Method for all Items.

But for Controling purpose they have to prepare a report which will present their stock value with Avg. Costing method.

Do you have any expirence with that? I know that it is not possible to use 2 Costing Methods at the same time for one item.

I am looking for a tool or solution which will give me a stock value calculated report based on Avg. Costing method.

Thank You in advance for any kind of tip.

Sync-navTenant Problem

$
0
0
Hi,
did anyone had the problem with Sync-navTenant related to Metadata.MultiLanguage. Here Log from EventViewer:

Type: System.ArgumentException
Message: An item with the same key has already been added.
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Microsoft.Dynamics.Nav.Types.Metadata.MultiLanguage.SplitMultiLanguageString(String textMultiLanguage)
at Microsoft.Dynamics.Nav.Runtime.NCLCaptionStrings.CreateNCLCaptionStrings(String captionML, String defaultValue)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaField.CreateFromMetaField(NCLMetaTable parentTable, MetaField metaField, Boolean isPartOfPrimaryKey, Int32 index, Int32 sqlFieldIndex)
at Microsoft.Dynamics.Nav.Runtime.NCLMetaTable.AssignFromMetaTable(MetaTable metaTable, Boolean databaseConvertedFromNav2013)
at Microsoft.Dynamics.Nav.Runtime.NavSqlMetadata.GetTableMetadataFromTenant(NavDatabase tenantDatabase, Int32 tableId, NCLMetaTable& table, Boolean databaseConvertedFromNav2013)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDatabaseSync.GetTableChanges(Boolean sortingPropertiesChanged, Boolean databaseConvertedFromNav2013)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDatabaseSync.SynchronizeTenantDatabase(NavSession session, SyncMode syncMode)
at Microsoft.Dynamics.Nav.Runtime.NavTenant.Microsoft.Dynamics.Nav.Runtime.ITenantSessionHandler.RunTenantActionInSystemSession(Action`2 action, Boolean throwExceptions)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDatabaseSync.EnsureDatabaseInSync(SyncMode syncMode)
at Microsoft.Dynamics.Nav.Runtime.NavSqlDatabaseSync.<>c__DisplayClass48.<StartSyncProcessIfNotAlreadyStarted>b__46()
at System.Threading.Tasks.Task.Execute()
--- 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.Nav.Runtime.NavSqlDatabaseSync.StartSyncProcessIfNotAlreadyStarted(SyncMode syncMode)
at Microsoft.Dynamics.Nav.Runtime.NavTenantManagementTasks.SynchronizeTenantDatabase(String tenantId, SyncMode syncMode, Boolean async)
at SyncInvokeSynchronizeTenantDatabase(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, Object[] inputs, Object[]& outputs)
Source: mscorlib
HResult

Links not attaching to an invoice

$
0
0
So I need to match the links between Vendor Ledger Entries and the posted document.
So for instance, I attach a link to a Vendor Ledger Entry, but it is not being attached to this invoice, because it is different table etc. and vice versa.
Where do I need to insert the COPYLINKS function? Any suggestions?

How do bigger businesses with internal IT/Dev teams handle Microsoft Dynamics NAV development?

$
0
0
How do bigger businesses with internal IT/Dev teams handle Microsoft Dynamics NAV development? Most NAV development is done through Microsoft partners, but what if the business has the capability to do it in house, how do they do it? I am primarily asking because businesses are generally limited by what they can do/edit in the system with the Starter package and even if they purchase more add-ons, they can't necessarily do C/AL code everywhere or change all objects. What are, then, the options for such businesses with in-house staff?

default Process Flow

$
0
0
Hello Good day.

Where can I find the default process flow of defaults modules of Navision 2018? is there any available? Microsoft release this kind of documents ?

Thanks and advance.

Permission

$
0
0
Hi all,

One user is getting an error message that he doesn't have a Modify permission for the table 298: 'Issued Reminder Line', but he has this permission.

Can someone tell me what is the issue?

Thanks a lot,

JSON Best Way to read them on Dynamics NAV

$
0
0
According to NAVTechDays 2017 Json Meets NAV thre are several ways to Read a JSON file
Manually – but I would not do that • Convert Json to Xml and read with XmlPort and/or DOM Codeunit 6224 • Use JsonTextReader to read Json to a buffer table (Json Buffer, 1236) • Use JObject DotNet to read Json Json readers

I followed this article https://kauffmann.nl/2015/12/03/web-services-examples-part-2-verify-e-mail-address/

but my JSON has a more complex structure similar with the following example
{
    "firstName": "Oscar",
    "lastName": "Smith",
    "gender": "man",
    "age": 76,
    "address": {
        "streetAddress": "999 Udhna",
        "city": "ASurt",
        "state": "GJ",
        "postalCode": "254221"
    },
    "phoneNumbers": [
        { "type": "home", "number": "7383627627" }
    ]
}

Could you give me an example I can I extract for instance the city.

thanks for your help.

Business Central Times out when receiving a "big" JsonObject from a JavaScript ControlAdding

$
0
0
I am currently working on a webclient DropZone AddIn based on JavaScript.

I read in Files through JavaScript and add them in Base64 with a few others Values to a JsonObject to send them to businesscentral, where the Object is disassembled the Base64 is converted to Blob and then everything is saved in a table.

Works perfectly fine with files under 30mb, but when getting bigger than that business central gives me a Could not connect error.

My JavaScript:
7wvw3q3ui3fy.png


My Al:
q85idozebziu.png


It would be good if the AddIn would be capable of at least 100mb.
Please help me.

Thanks in advance

Lerxx

BC Webclient Personalizing Workspace Error

$
0
0
It is not working! Does anybody know what I'm doing wrong?

This happens in BC CU03 on prem, upgraded from NAV2016.
It has been in production for a few weeks now, nothing else seems wrong with it.

I added "PersonalizationEnabled": "True" to my navsettings.json file.

Restarted everything.

But each time when I drag and drop
2m4fc2zv3ht2.png

This error occurs
epmnrw495c20.png

The strange thing is that when I set the servicetier to use a Cronus database,
everything is working fine. I can download extension file, all seems fine.


When I put the upgraded database back in place, the same error occurs.
So it must be in the database.
I tried resetting Profile Metadata and User Metadata, but that makes no difference.





Javascript Add-in Webclient Error "Method XYZ was not found in the control add-in"

$
0
0
Dear colleagues,

I've created a simple javascript add-in for NAV2016 that works fine in the Windows client.
It's just a textarea with an event and custom methods to set and get the textarea content.

The error message "method "my-method-name" was not found in the control add-in" comes up when using the same page in the web client.
I've double checked allmost everything+
-restarted the NST and IIS sebsite several time
- deleted all add-ins
- deleted the object from the object metadata table
- ...
- if I change the action to another method, the message changes, too: method "the-other-method name" was not found...
-
The error is not very popular in google, so I hope that there is a expert in the community, who had this error in the past and could solve it.

Thanks in advance
Sebastian

How to modify Factbox width in webclient?

$
0
0
Does anyone know the secret how to modify the width of factbox area in webclient?

I have a control-add displaying a PDF using pdf.js - works very nice in Windows Client, but I can't get it to work in web-client, as it's seems locked to it's default width no matter what I try with my control-addin.

I know the CSS parameter to change, but this is for BC SAAS, so I don't know how to "override" those parameters.


@media screen and (min-width: 1367px)
.ms-nav-layout-wide .ms-nav-layout-page-embedded .ms-nav-layout-aside-right)

In this i modify
flex-basis: 50%; and factbox takes up 50 %;

Copy Company (BC) Failed

$
0
0
Hi All
I am using BC CU 01,
the database mdf file is around 65GB, log file 30 GB
this database have around 50 companies inside.
when I copy company it will show this error below.
p7riedb6b7r0.png

Please advise what should I do.
Thanks before.

Single Fixed Asset for multiple same Object

$
0
0
Dear Sir,

During Fixed Asset Implementation process, my client wants to maintain a Single Fixed Asset Card(FA) for multiple but same kind of equipment. Suppose they have bought a Fixed Asset ( Quantity 4 of similar kind of Computer), they want to maintain a single FA for that. And the same FA(Computer) will be disposed if they will sale out all the 4 Quantity.

How this will be configured with or without customization in NAV 2016 Database ?

Kindly reply .

Regards,

navuser1
Viewing all 10066 articles
Browse latest View live


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