#FAQ
* [1. Why after issuing a policy the number of claims of the vehicle is not correct?](#claims)
* [2. What is the difference between the methods getPolicyDocument and getPolicyDocumentByEndorsementCode?](#getPolicy)
* [3. What is the distChannel field in issuePolicy method?](#distChannel)
* [4. Do i need to create first a journal and then download the policy?](#journal)
* [5. From issuePolicy i will always get a policy number?](#policy)
* [6. How can i see the cause of the response fault?](#exception)
## 1. Why after issuing a policy the number of claims of the vehicle is not correct?
When you call the method issuePolicy of Motor Services, make sure that you pass correctly the transferDate field of the MotorInsurable object.
If this field is null then it's possible that it will be calculated claims of a previous owner.
## 2. What is the difference between the methods getPolicyDocument and getPolicyDocumentByEndorsementCode?
The getPolicyDocument() method retrieves the policy document of the latest endorsement. The getPolicyByEndorsementCode() method
retrieves the policy document of a specific endorsement. The same logic have the methods getReceiptDocument and getReceiptDocumentsByEndorsementCode.
## 3. What is the distChannel field in issuePolicy method?
Every agent has a unique code which is named as Distribution Channel. This code may have subcodes. In this case, it's called Master Distribution Channel
and is the code, agents login to the web services. If they want to issue a Policy, in the distChannel field they have to declare a subcode and not
the master code. In the case of an agent having only one code, this is used both for login and issuing a policy.
## 4. Do i need to create first a journal and then download a policy?
No, when you call one of the methods getPolicyDocument, getPolicyDocumentByEndorsementCode, getReceiptDocument, getReceiptDocumentByEndorsementCode then a Journal,
if not existing, will be created automatically. This means that whenever one of above methods is called the the agent is "charged" automatically the policy.
## 5. From issuePolicy i will always get a policy number?
From issuePolicy you get as a response:
* a Validation Exception if you missing vital information
* a policy number and an application number if your request meets all of our rules and you have issued a policy
* only an application number, if the data doesn't meet our rules and need extra check from the underwriters
If you want to check if an application became a policy, you have to call getPolicyCodeByApplicationCode.
## 6. How can i see the cause of the response fault?
We have two different exceptions.
* SystemMaintenanceException, from which you cannot see the cause
* AuthorizationException. It doesn't give any cause. It means that you are not authorized for this action
* ValidationException. From this exception you can see the cause by retrieving the Report object. The Report has a list of Message objects which indicate the cause of the exception *(see General Consideration)*.
**Java Example**
```
} catch (SystemMaintenanceException_Exception ex) {
Logger.getLogger(TarifficationExample1.class.getName()).log(Level.SEVERE, null, ex);
} catch (ValidationException ex) {
//Manage report if ValidationException occur
Report report = ex.getFaultInfo().getReport();
for(Message message : report.getMessage()) {
System.out.println("Target : "+message.getTarget());
System.out.println("Severity: "+message.getSeverity());
System.out.println("Message Code: "+message.getCode());
System.out.println("Message: "+message.getBody());
}
} catch(AuthorizationException_Exception e) {
Logger.getLogger(TarifficationExample1.class.getName()).log(Level.SEVERE, null, e);
}
```