Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all 2425 articles
Browse latest View live

Could not create an instance of the OLE control

$
0
0
Hi all,

Need help from here....

I got error "Could not create an instance of the OLE control....."
ai95syt1kcx1.jpg

is there any step that i can use?



Adding BLOB image to JSon request

$
0
0
Hello professionals,

I'm trying to add BLOB image to JSon request send to API.
First of all I'm converting that photo to BigInteger and after that it's converted into base64string.





APIUploadProductImage(ProductID : Text)

CLEAR(ImageBigText);

recItem.SETRANGE(recItem."No.", '10000');
IF recItem.FINDFIRST THEN BEGIN
recItem.CALCFIELDS(Picture);
IF NOT recItem.Picture.HASVALUE THEN
EXIT;

recItem.Picture.CREATEINSTREAM(Istream);
MemoryStream := MemoryStream.MemoryStream();
COPYSTREAM(MemoryStream,Istream);
Bytes := MemoryStream.ToArray();
ImageBigText.ADDTEXT(Convert.ToBase64String(Bytes));
END;

JsonMgt.StartJSon;
JsonMgt.AddToJSon('image',ImageBigText);
JsonMgt.EndJSon;

String := String.Copy(JsonMgt.GetJSon);

WebServiceURL := 'https://XXXXXXXXXXXXXX/api/2.0/products/'+ProductID+'/actions/image_upload/';
HttpWebRequest := HttpWebRequest.Create(WebServiceURL);
HttpWebRequest.Method := 'POST';
HttpWebRequest.KeepAlive := TRUE;
HttpWebRequest.Timeout := 30000;
HttpWebRequest.Accept('application/json');
HttpWebRequest.ContentType('multipart/form-data');
HttpWebRequest.Headers.Add('Authorization: Bearer ' + 'XXXXXXXXXXXX');

StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream,Encoding.GetEncoding('iso8859-1'));
StreamWriter.Write(String);
StreamWriter.Close;

NAVWebRequest := NAVWebRequest.NAVWebRequest;
NAVWebRequest.doRequest(HttpWebRequest,HttpWebException,HttpWebResponse);

##########!!!!!!!!!!################!!!!!!!!!!!

and here it breaks at this line.

Error shows:

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at NAVWebRequest.NAVWebRequest.doRequest(HttpWebRequest& WebRequest, WebException& WebException, WebResponse


I'm new with JSon. My brain already stopped working. And I can create/get request/response but in case of adding BLOB to request I have to give up... I think something is wrong with converting blob>biginteger>here?

JsonMgt.Start, add & endJson are functions which are building json schema around data which I'm providing. It works for normal data so it's not problem with it.

Any hints lads? Any idea, tip, all those will be helpful!

Ahh and I'm working on NAV2016.

Thanks in advance!
Tim

HELP HELP HELP - F1 on RTC CLIENT 2016 don't works since 1 month. I have W10.

$
0
0
Since two weeks doing F1 on field of RTC NAV Client, it appears "Could not open HELP for the requested element". No eventvwr error, No DEBUG (the error is from RTC CLIENT). Form Internet explorer NAV HELP on port 49000 works fine. I didt find LOG o where to see the reason of this error. The error appears when i press F1 on my keabord. ANY SUGGEST ? Thanks a lot for an answer. You can see the screenshot in attachment. Where to see a LOG ?

How to grouping by item category code in C/AL

$
0
0
Hello all,
I have sum Amount Including Vat of Sales Line grouping by Item Category Code in C/AL. How to group it?

Outlook Synchronization with NAV 2013

$
0
0
Hello Everyone
I want to synchronize Outlook with Microsoft Dynamics 2013 R2 so that each employee can enter into Outlook calendar working days, vacation etc. and that the information is loaded into a table which contains information about employee absences. Does anyone have an idea?

Best regards

removing commas from thousands

how to hide group in report builder

$
0
0
i want to show and hide a group depending on an expression but if i hide it, it wont come back

find missing captions in a language

$
0
0
Is there a tool that shows me which fields/constants/labels/etc are missing captions in a certain language in my database?
I know that most fields/pages/etc have already a translated caption, but I'm also sure that there are a few missing, but I do not know how to locate them.

Can someone please advice?

sending file to a webserver from navision 4

$
0
0
I'm interested in sending a file (text file) from navision 4.0 to a webserver.
Since Navision 4.0 is now using the .NET framework, I guess it could be done very easy. Or is that in Navision a complex thing to do?

The problem is that I couldn't find any kind of documentation for such things. Do they even exist?

thanks

A payment is applied to several invoices

$
0
0
we have a payment is applied to several invoices but when we unapply it its unapplying one by one invoices, is it not possible to unapply it so that all invoices are unapplied as well. ? thanks

Export some data from XMLPort to a bigtext issue

$
0
0
Hi Mibuso!
This is my first post in this forum :)

I have a simple issue, but is not working... maybe you may help...
I'm trying to export some data from XMLPort to a bigtext.
These are my vars and code:

Name DataType Subtype Length
XMLInfoStoc XMLport 50042
tempBlob Record TempBlob
outFile OutStream
Instr InStream
TestText Text 1024



CLEAR(tempBlob);
CLEAR(outXML);
tempBlob.DELETEALL;
tempBlob."Primay Key" := 1;
tempBlob.INSERT;
tempBlob.Blob.CREATEOUTSTREAM(outFile);
XMLInfoStoc.SETTABLEVIEW(Item);
XMLInfoStoc.SETDESTINATION(outFile);
XMLInfoStoc.EXPORT;
tempBlob.MODIFY;

tempBlob.CALCFIELDS(Blob);
IF tempBlob.Blob.HASVALUE THEN BEGIN
tempBlob.Blob.CREATEINSTREAM(Instr);
outXML.READ(Instr);
MESSAGE('Length= %1',FORMAT(outXML.LENGTH)); //the length of outXml is 582
outXML.GETSUBTEXT(TestText, 1, 1024) ; //outXml contains only characters ".<"
MESSAGE(TestText);
tempBlob.Blob.EXPORT('E:\simona\InfoStocOUTXML_cip2.xml') //the exporte file is ok, contains all required data in XML format
END;


WHY the OutXml is not containing all the data in Instr, as it is exported by tempBlob.Blob.EXPORT?????
It seems that the line outXML.READ(Instr) is not working properly, because the OutXml contains only ".<" instead of entire Instr...

Any idea, something missing??
I already compared with some exemples and seems that my code is ok... but is not...

Thank you in advance!
Simona

Service Quote Make Order Error

$
0
0
I have a part reserved on a Service Quote. When I go to make the service quote an order I get the following error: "The primary key in the reservation entry table can contain only one field, and its type must be integer".

I have looked into the action "Make Order" Action 33 on the Service Quote (Page 5964).

I have followed the code path to Code Unit 5922 then to Code Unit 5923 which calls a function ServLine.VALIDATE("Reserved Qty. (Base)",0);

This runs through each item that is on the service item worksheet. Once it finds a item that has a reservation the Validate piece stops and the next line does not run and the error is thrown.

But I haven't been able to trace where that is occurring or what is going wrong.

I could use some help being pointed in the right direction, or enlightenment on what I am missing.

Thank you,
dj

how to use java in navision

Extensions between versions (2016/2017)

$
0
0
Hey there !

I was testing extensions in the Nav 2016 (Cronus Database) and couldn't achieve what I wanted to do. So I decided to download Nav 2017 (Downloadable here if you fill a little survey). Then I thought "Nice ! I will be able to install my 2016 extension on 2017 !".

I got an error :
548344Error.png

This wasn't a big extension, but I had to add a field in "Sales Header" Table in it. Understanding how the .DELTA files were generated (here you have a pretty good example, made by Ashwini Tripathi) I decided to check the differences between "Sales Header" 's table in those versions, using WinMerge :

117550WinMerge.png
(Just in case, all the yellow/grey zones are added/missing code lines)

I got sad, this was blinking more than my Christmas Tree ! When Microsoft announced this new feature, I directly thought about the migrations, like right click, copy, right click, paste.

Can I only use my extensions in the Navision version I developped it ?

Many thanks in advance,


Tranad

Dynamic NAV 2009: Code running from Classic is working fine but running from RTC gives the error.

$
0
0
We are using EDI conversion from classic which is working fine but the same code running from RTC gives 'An I/O exception occurred during the operation'.
What to find the cause of solution of it?

question

$
0
0
Reservation of Serial numbers on the Sales Orders.

Show group member from window group member

$
0
0
853mjt5z2w48.jpg

NAV 2009, we have create a group called Domain Users(as per attached image display), by this setup, user can login into NAV 2009 without setup one by one on window login form. And this group have record on "Windows Group Member" table.

However, we need to list out all the user which is categorized as "Domain Users" group. The user name have save at virtual table "Windows Object".wvuuld7or3s1.png

Now the problem is, how we going to link between table "Windows Group Member" and "Windows Object"?

thank you for helping us

Customer statement in NAV 2016 CU04.

$
0
0
In connection with NAV 2016 I want to e-mail customer statement - I can choose to view account statements, PDF, e-mail, Excel and XML in the "Output Options". I choose e-mail but nothing happens, what am I doing wrong for nothing happens.

I want to send customer statement to one customer per. e-mail.

Item Card

$
0
0
Hi,

We are running Navision 2009 R2 and have a question on item card. We have created a lot of items in the system and my question is how to find out that item has been created but this item hasnt been used at all in any operation in the system and has no sales or purchases or positive or negative adjustments against it. So my question is how to find out such items from navision whereby they are just sitting inside our database and doing nothing

Regards
Khan

Two Factor Login for Web

$
0
0
Hi guys.

I want to setup some extra security on the login part for Web.
Can anyone guide me in the right direction.

I have found this that I want to try: https://duo.com/docs/duoweb
Want I need is to find where the iframe should be added and so on.

Thanks
/left
Viewing all 2425 articles
Browse latest View live