sharepoint - Infopath Custom Task Form Updation : System.xml.xmlexception -
i have created workflow create task , approve task using custom infopath form. while clicking button approve/reject, task form raises xml exception
"date" unexpected token, expected token "=".
below have listed stack trace of excetion,
server error in '/' application. 'date' unexpected token. expected token '='. line 1, position 22. description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code. exception details: system.xml.xmlexception: 'date' unexpected token. expected token '='. line 1, position 22. source error: unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below. stack trace: [xmlexception: 'date' unexpected token. expected token '='. line 1, position 22.] system.xml.xmltextreaderimpl.throw(exception e) +95 system.xml.xmltextreaderimpl.parseattributes() +5089862 system.xml.xmltextreaderimpl.parseelement() +378 system.xml.xmltextreaderimpl.parsedocumentcontent() +429 system.xml.xmlreader.movetocontent() +22 microsoft.sharepoint.workflow.spworkflowtask.getextendedpropertiesashashtable(splistitem task) +289 microsoft.sharepoint.workflow.spworkflowtask.setworkflowdata(splistitem task, hashtable newvalues, boolean ignorereadonly) +471 microsoft.sharepoint.workflow.spworkflowtask.altertask(splistitem task, hashtable htdata, boolean fsynchronous) +110 microsoft.office.workflow.wrktaskippage.xmlformcontrol_onclose(object sender, eventargs e) +700 microsoft.office.infopath.server.controls.xmlformview.closedocument(eventlogstart eventlogstart) +113 microsoft.office.infopath.server.controls.xmlformview.playservermessages(eventlogstart eventlogstart) +192 microsoft.office.infopath.server.controls.xmlformview.ondatabindhelper() +428 microsoft.office.infopath.server.controls.xmlformview.ondatabinding(eventargse) +97 system.web.ui.webcontrols.webparts.part.databind() +42 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 system.web.ui.control.databindchildren() +11046927 system.web.ui.control.databind(boolean raiseondatabinding) +182 microsoft.office.workflow.wrktaskippage.onload(eventargs ea) +3270 system.web.ui.control.loadrecursive() +66 system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint) +2428
try this might work...
you must have extended properties declaration @ task create property. add x0020 in spaces available. code might like
sptaskcreate_taskproperties.extendedproperties["start_x0020_date"] = datetime.now; and not
sptaskcreate_taskproperties.extendedproperties["start date"] = datetime.now;
Comments
Post a Comment