Text

Answered

519 export operation failed

Hi guys,


I'm using MyScriptInteractiveInk-UIReferenceImplementation in iOS app, I get an error `519 export operation failed` while i export the editor which owns a  Text Document content part to html after i drawing something. and when i get the supported mime types, it not include `IINKMimeTypeText`, why ?

 

Error Domain=Interactive Ink SDK Error Domain Code=1 "Error, -[IINKEditor export_:mimeType:error:]::519 export operation failed" UserInfo={NSLocalizedFailureReason=Error, -[IINKEditor export_:mimeType:error:]::519 export operation failed}


Any suggestions ? 


Best Answer

Thanks Gwenaëlle for your mentioned, finally i found i missed recognition assets config for raw-content, after i added it, it works well


Dear Xiaoming Jin,


Thank you for your request.


If you are working with a Text Document content part, the IINKMimeTypeText is indeed only supported when your text document contains at least one text block, since this is the only block type that supports "raw text" export format.


If your Text Document content part contains only a Drawing block,, then, as the IINKMimeTypeText is not supported for drawing, it is not supported for your Text Docuement. 


If I understood correctely your scenario, I guess this is the cause of your error. But I am not sure I got it because you also mention that you want to export as html. So could you, please, confirm what is the export format you are trying to use?


Best regards,


Gwenaëlle






Hi Gwenaëlle,

Thanks for your reply!

Yes, i know what you mean, what i have tried and problems is:

1. Create content part `Text Document`

2. I have debugged after i set the content part to editor, i tried to get supported mime types `DOCX HTML JIIX JPEG PNG`

3. Then I draw something like `A` and try to export, before export i check mime types again, it still  `DOCX HTML JIIX JPEG PNG`, but in your examples, it will include `Text` like you said it may create a Text block when i type `A`, but seems on my side the text block didn't created, how can i check or create a text block ?

4. Then i just try to export as HTML and get this error: Error Domain=Interactive Ink SDK Error Domain Code=1 "Error, -[IINKEditor export_:mimeType:error:]::519 export operation failed" UserInfo={NSLocalizedFailureReason=Error, -[IINKEditor export_:mimeType:error:]::519 export operation failed}

5. I roll back my draws to keep a empty view, then export html, it success to get html result


So i think like your said when i draw something, it not create correct block ? how i can do to control this ?

Any suggestions ?


Thanks again

 


Answer

Thanks Gwenaëlle for your mentioned, finally i found i missed recognition assets config for raw-content, after i added it, it works well